cqpCow преди 1 година
родител
ревизия
0f294cb556
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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);