From ed768ae8055dccce0803e790c719794342393ed5 Mon Sep 17 00:00:00 2001 From: Devil Date: Wed, 26 May 2021 19:54:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=92=E4=BB=B6=E7=AE=A1=E7=90=86=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/service/PluginsService.php | 2 +- application/service/StoreService.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/application/service/PluginsService.php b/application/service/PluginsService.php index 36088a499..43a342799 100755 --- a/application/service/PluginsService.php +++ b/application/service/PluginsService.php @@ -337,7 +337,7 @@ class PluginsService 'ver' => $config['base']['version'], ]; $ret = StoreService::PluginsLegalCheck($check_params); - cache($key, $ret, 600); + cache($key, $ret, 3600); } if($ret['code'] != 0) { diff --git a/application/service/StoreService.php b/application/service/StoreService.php index 06e1eed9b..3d73ce904 100644 --- a/application/service/StoreService.php +++ b/application/service/StoreService.php @@ -179,8 +179,8 @@ class StoreService $res = self::RemoteStoreData($accounts, $password, self::$store_site_info_url); if($res['code'] == 0) { - // 存储缓存、取远程给的时间,未拿到时间则默认30分钟 - $cache_time = (empty($res['data']['base']) || empty($res['data']['base']['cache_time'])) ? 1800 : intval($res['data']['base']['cache_time']); + // 存储缓存、取远程给的时间,未拿到时间则默认60分钟 + $cache_time = (empty($res['data']['base']) || empty($res['data']['base']['cache_time'])) ? 3600 : intval($res['data']['base']['cache_time']); cache(self::$site_store_info_key, $res['data'], $cache_time); return DataReturn('绑定成功', 0);