王大坤 1 year ago
parent
commit
76d1142744
1 changed files with 3 additions and 3 deletions
  1. 3 3
      app/libs/wechat/auth/Gateways/General.php

+ 3 - 3
app/libs/wechat/auth/Gateways/General.php

@@ -177,9 +177,9 @@ class General extends Base
                 $token = Db::table('configs')->where('c_key',$key)->where('c_expired',' > ',time())->value('c_value');
                 $token = Db::table('configs')->where('c_key',$key)->where('c_expired',' > ',time())->value('c_value');
                 break;
                 break;
         }
         }
-        if ($token) {
-            return $token;
-        }
+//        if ($token) {
+//            return $token;
+//        }
 
 
         $url = 'https://api.weixin.qq.com/cgi-bin/token';
         $url = 'https://api.weixin.qq.com/cgi-bin/token';
         $res = Curl::requestCurl($url, 'GET', [], http_build_query([
         $res = Curl::requestCurl($url, 'GET', [], http_build_query([