WIN-2308041133\Administrator преди 1 месец
родител
ревизия
9be7afa12e
променени са 2 файла, в които са добавени 8 реда и са изтрити 4 реда
  1. 4 4
      app/controller/api/Auth.php
  2. 4 0
      crmeb/services/WechatService.php

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

@@ -140,7 +140,7 @@ class Auth extends BaseController
      */
     public function login(UserRepository $repository)
     {
-        @file_put_contents('quanju3.txt',"-还是说这里\r\n",8);
+//        @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))
@@ -545,7 +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);
+//        @file_put_contents('quanju3.txt',$auth['type']."-或者说走这里\r\n",8);
         if ($auth['type'] === 'routine') {
             $code = $data['code'] ?? '';
             $userInfoCong = Cache::get('eb_api_code_' . $code);
@@ -582,7 +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);
+//            @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();
@@ -639,7 +639,7 @@ class Auth extends BaseController
      */
     public function authLogin()
     {
-        @file_put_contents('quanju3.txt',"-是走这里吗\r\n",8);
+
         $auth = $this->request->param('auth');
         $users = $this->authInfo($auth, !systemConfig('is_phone_login'));
         if (!$users)

+ 4 - 0
crmeb/services/WechatService.php

@@ -152,6 +152,9 @@ class WechatService
      */
     public static function create($isApp = null)
     {
+        $config = self::getConfig($isApp);
+        @file_put_contents('quanju3.txt',$isApp."-isApp信息\r\n",8);
+        @file_put_contents('quanju3.txt',json_encode($config)."-getConfig\r\n",8);
         return new self(self::getConfig($isApp));
     }
 
@@ -185,6 +188,7 @@ class WechatService
      */
     public function serve(\think\Request $request)
     {
+        @file_put_contents('quanju3.txt',"-是走这里吗\r\n",8);
         $this->serverRequest($request);
         $this->wechatEventHook();
         return response($this->application->server->serve()->getContent());