wesmiler 2 лет назад
Родитель
Сommit
0e97f6be43
1 измененных файлов с 1 добавлено и 1 удалено
  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;
         $data = RedisService::get($cacheKey);
         $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()){
             $url = self::$apiUrl.self::$apiUrls['getToken'];
             $timestamp = time();