cqpCow il y a 1 an
Parent
commit
0f294cb556
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      app/Service/Weixin/WeixinService.php

+ 1 - 1
app/Service/Weixin/WeixinService.php

@@ -17,7 +17,7 @@ class WeixinService extends Service
     public function getToken(){
         $token_key = self::KEY.'_'.'token';
         $token = Redis::get($token_key);
-        if(! empty($token)){
+        if(! $token){
             $url = sprintf(self::ACCESS_URL,self::APPID,self::APPSECRET);
             $res = $this->curlOpen($url);
             $res = json_decode($res,true);