数据缓存处理
This commit is contained in:
@@ -4,6 +4,7 @@ namespace app\adminapi\controller;
|
||||
|
||||
use app\admin\model\AdminLog;
|
||||
use app\common\controller\adminApi;
|
||||
use think\Cache;
|
||||
use think\Config;
|
||||
use think\Db;
|
||||
use think\Hook;
|
||||
@@ -95,6 +96,9 @@ class SysSet extends adminApi
|
||||
$data = [
|
||||
'key_value'=>$v,
|
||||
];
|
||||
if($k == 'is_maintenance' || $k == 'inside_uid'){
|
||||
Cache::rm($k);
|
||||
}
|
||||
db::name($this->table)->where(['key_title'=>$k])->update($data);
|
||||
}
|
||||
return V(1,"成功");
|
||||
|
||||
Reference in New Issue
Block a user