王大坤 1 年之前
父节点
当前提交
4cdf0d94a5
共有 2 个文件被更改,包括 1 次插入3 次删除
  1. 1 1
      app/libs/wechat/auth/Gateways/General.php
  2. 0 2
      app/libs/wechat/auth/Gateways/Mini.php

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

xqd
@@ -174,7 +174,7 @@ class General extends Base
                 break;
             case 'db':
             default:
-                $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;
         }
         if ($token) {

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

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