用户详情 加家族成员-解约
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;
|
||||
@@ -165,6 +166,12 @@ class Gift extends adminApi
|
||||
if(!$id){
|
||||
return V(0,"添加失败");
|
||||
}
|
||||
//删除缓存
|
||||
$cache_key = 'gift_list_'.$label.'_1';
|
||||
Cache::rm($cache_key);
|
||||
$cache_key = 'gift_list_'.$label;
|
||||
Cache::rm($cache_key);
|
||||
|
||||
return V(1,"成功",['id'=>$id]);
|
||||
}
|
||||
/*
|
||||
@@ -256,6 +263,11 @@ class Gift extends adminApi
|
||||
if(!$result){
|
||||
return V(0,"修改失败,礼物内容无更改");
|
||||
}
|
||||
//删除缓存
|
||||
$cache_key = 'gift_list_'.$gift_data['label'].'_1';
|
||||
Cache::rm($cache_key);
|
||||
$cache_key = 'gift_list_'.$gift_data['label'];
|
||||
Cache::rm($cache_key);
|
||||
return V(1,"成功", ['id'=>$gid]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user