wanghousheng 1 year ago
parent 48c7f8cf32
commit 4ffc59fe8a
  1. 4
      app/common/model/wxapp/Setting.php

@ -12,9 +12,9 @@ declare (strict_types=1);
namespace app\common\model\wxapp;
use app\common\library\helper;
use cores\BaseModel;
use think\facade\Cache;
use app\common\library\helper;
/**
* 微信小程序设置模型
@ -88,7 +88,7 @@ class Setting extends BaseModel
{
$model = new static;
is_null($storeId) && $storeId = static::$storeId;
if (!$data = Cache::get("wxapp_setting_{$storeId}")) {
if ($data = Cache::get("wxapp_setting_{$storeId}")) {
// 获取全部设置
$data = $model->getList($storeId);
// 写入缓存中

Loading…
Cancel
Save