账号登录
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user