浏览代码

增加登录设置api

kevin 1 年之前
父节点
当前提交
425ae794d8
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      app/common/model/settings/Setting.php

+ 0 - 1
app/common/model/settings/Setting.php

@@ -63,7 +63,6 @@ class Setting extends BaseModel
     {
         $static = new static;
         is_null($app_id) && $app_id = $static::$app_id;
-        Cache::delete('setting_' . $app_id);
         if (!$data = Cache::get('setting_' . $app_id)) {
             $setting = $static->where(compact('app_id'))->select();
             $data = empty($setting) ? [] : array_column($static->collection($setting)->toArray(), null, 'key');