qiushang преди 1 година
родител
ревизия
01f5d7dda6
променени са 2 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 1 1
      app/Http/Api/WechatOfficialController.php
  2. 2 0
      app/Http/Home/SoftController.php

+ 1 - 1
app/Http/Api/WechatOfficialController.php

@@ -132,7 +132,7 @@ class WechatOfficialController extends HttpBaseController
         $avatar = 'https://www.xingyousoft.com/static/images/softlogo.png'; // 头像网址
         $unionid = $userInfo['unionid'] ?? '';
         $wxInfo = $userInfo;
-        Log::info('11111111111111111111111111 === ' . 'openid' . $openid );
+
         $isExistUser = DB::table('user_wechat_official_account')->select('id','mid')->where('openid', $openid)->first();
         $productInfo = DB::table('product')->where('mid', $productMid)->where('is_delete', 0)->first();
 

+ 2 - 0
app/Http/Home/SoftController.php

@@ -437,6 +437,8 @@ class SoftController extends HttpBaseController
         $loginToken = new LoginTokenService($this->siteInfo['token_table']);
         // token 放到了userAgent里面,后期优化
         $tokenInfo = $loginToken->findToken($token);
+        Log::info('111111111 === ' . 'token----' . json_encode($token) );
+        Log::info('222222222 === ' . 'tokenInfo----' . json_encode($tokenInfo) );
 
         if ($tokenInfo) {
             $this->userId = $tokenInfo->user_id;