WIN-2308041133\Administrator 1 місяць тому
батько
коміт
7d85f4cb01
1 змінених файлів з 4 додано та 1 видалено
  1. 4 1
      app/controller/api/Auth.php

+ 4 - 1
app/controller/api/Auth.php

@@ -140,6 +140,7 @@ class Auth extends BaseController
      */
     public function login(UserRepository $repository)
     {
+        @file_put_contents('quanju3.txt',"-还是说这里\r\n",8);
         $account = $this->request->param('account');
         $auth_token = $this->request->param('auth_token');
         if (Cache::get('api_login_freeze_' . $account))
@@ -544,6 +545,7 @@ class Auth extends BaseController
         if (!in_array($auth['type'] ?? '', ['wechat', 'routine', 'apple', 'app_wechat']) || !isset($auth['auth']))
             throw new ValidateException('授权信息类型有误');
         $data = $auth['auth'];
+        @file_put_contents('quanju3.txt',$auth['type']."-或者说走这里\r\n",8);
         if ($auth['type'] === 'routine') {
             $code = $data['code'] ?? '';
             $userInfoCong = Cache::get('eb_api_code_' . $code);
@@ -580,6 +582,7 @@ class Auth extends BaseController
         } else if ($auth['type'] === 'wechat') {
             $request = $this->request;
             $oauth = WechatService::create()->getApplication()->oauth;
+            @file_put_contents('quanju3.txt',json_encode($oauth)."-微信登陆内容\r\n",8);
             $oauth->setRequest(new Request($data, $data, [], [], [], $request->server(), $request->getContent()));
             try {
                 $wechatInfo = $oauth->user()->getOriginal();
@@ -636,7 +639,7 @@ class Auth extends BaseController
      */
     public function authLogin()
     {
-//        @file_put_contents('quanju3.txt',"-微信是否是走这里登录\r\n",8);
+        @file_put_contents('quanju3.txt',"-是走这里吗\r\n",8);
         $auth = $this->request->param('auth');
         $users = $this->authInfo($auth, !systemConfig('is_phone_login'));
         if (!$users)