王大坤 1 year ago
parent
commit
255807a563
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app/libs/wechat/auth/Gateways/Mini.php

+ 2 - 1
app/libs/wechat/auth/Gateways/Mini.php

@@ -162,10 +162,11 @@ class Mini 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;
         }
         }
+        var_dump($token);
         if ($token) {
         if ($token) {
             return $token;
             return $token;
         }
         }
-
+        var_dump('jinru');
         $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([
             'grant_type' => 'client_credential',
             'grant_type' => 'client_credential',