新增手机号登录获取openid、新增身份认证科室验证
This commit is contained in:
@@ -41,4 +41,16 @@ class LoginController extends AbstractController
|
||||
$data = $LoginService->mobileLogin();
|
||||
return $this->response->json($data);
|
||||
}
|
||||
|
||||
// 微信授权接口
|
||||
public function wxAuthorize(): ResponseInterface
|
||||
{
|
||||
// 验证参数
|
||||
$request = $this->container->get(LoginRequest::class);
|
||||
$request->scene('wxAuthorize')->validateResolved();
|
||||
|
||||
$LoginService = new LoginService();
|
||||
$data = $LoginService->wxAuthorize();
|
||||
return $this->response->json($data);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user