|
|
@@ -37,7 +37,7 @@ class AppWx extends BaseModel
|
|
|
if (!$data = Cache::get('app_wx_' . $app_id)) {
|
|
|
$data = self::detail($app_id);
|
|
|
if (empty($data)) throw new BaseException(['msg' => '未找到当前小程序信息']);
|
|
|
- Cache::set('app_wx_' . $app_id, $data);
|
|
|
+ Cache::set('app_wx_' . $app_id, $data, rand(600, 7200));
|
|
|
}
|
|
|
return $data;
|
|
|
}
|