| 
...
 | 
...
 | 
@@ -40,9 +40,9 @@ class Base { | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
         // 缓存
 | 
| 
 | 
 | 
         $cacheKey = md5($url.':'.json_encode($data));
 | 
| 
 | 
 | 
         if(Cache::has($cacheKey)){
 | 
| 
 | 
 | 
             return Cache::get($cacheKey);
 | 
| 
 | 
 | 
         }
 | 
| 
 | 
 | 
 //        if(Cache::has($cacheKey)){
 | 
| 
 | 
 | 
 //            return Cache::get($cacheKey);
 | 
| 
 | 
 | 
 //        }
 | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
         $ch = curl_init();
 | 
| 
 | 
 | 
         curl_setopt($ch, CURLOPT_TIMEOUT, 30);
 | 
| 
...
 | 
...
 | 
@@ -59,7 +59,7 @@ class Base { | 
| 
 | 
 | 
         $a = json_decode($a,true);
 | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
         // 缓存1小时
 | 
| 
 | 
 | 
         Cache::set($cacheKey,$a['data']??[],3600);
 | 
| 
 | 
 | 
         Cache::set($cacheKey,$a['data']??[],empty($a['data'])?120:3600);
 | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
         return $a['data']??[];
 | 
| 
 | 
 | 
     }
 | 
...
 | 
...
 | 
 |