wesmiler %!s(int64=2) %!d(string=hai) anos
pai
achega
0e97f6be43
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Services/SupplyService.php

+ 1 - 1
app/Services/SupplyService.php

@@ -93,7 +93,7 @@ class SupplyService extends BaseService
         $cacheKey = "caches:supply:token_".self::$appId.'_'.self::$supplyMobile;
         $cacheKey = "caches:supply:token_".self::$appId.'_'.self::$supplyMobile;
         $data = RedisService::get($cacheKey);
         $data = RedisService::get($cacheKey);
         $accessToken = isset($data['access_token'])? $data['access_token'] : '';
         $accessToken = isset($data['access_token'])? $data['access_token'] : '';
-        $expireTime = isset($result['expire_date_time'])? $result['expire_date_time'] : 0;
+        $expireTime = isset($data['expire_date_time'])? $data['expire_date_time'] : 0;
         if(empty($accessToken) || $expireTime <= time()){
         if(empty($accessToken) || $expireTime <= time()){
             $url = self::$apiUrl.self::$apiUrls['getToken'];
             $url = self::$apiUrl.self::$apiUrls['getToken'];
             $timestamp = time();
             $timestamp = time();