账号登录

This commit is contained in:
2026-03-10 14:25:17 +08:00
parent cb692a8f90
commit 6dbcaecf68
5 changed files with 60 additions and 26 deletions
+2 -2
View File
@@ -67,10 +67,10 @@ class AuthController extends BaseController
try {
$data = $request->all();
if(empty($data['feishu_code']) || empty($data['app_id'])){
$data['login_type'] = $request->login_type;
if($data['login_type'] == 'feishu' && (empty($data['feishu_code']) || empty($data['app_id']))){
throw new BusinessException('参数错误');
}
$result = (new AuthService())->login($data);
return $this->success($result, '登录成功');
} catch (\Throwable $e) {