Przeglądaj źródła

增加登录设置

kevin 1 rok temu
rodzic
commit
a95c8ae58c
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      app/common/model/settings/Setting.php

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

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