解决超出发放礼物问题-巡乐会-加清除缓存方法
This commit is contained in:
@@ -9,6 +9,7 @@ use think\Db;
|
|||||||
use think\Hook;
|
use think\Hook;
|
||||||
use think\Session;
|
use think\Session;
|
||||||
use think\Validate;
|
use think\Validate;
|
||||||
|
use think\Cache;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 盲盒
|
* 盲盒
|
||||||
@@ -594,6 +595,9 @@ class BlindBox extends adminApi
|
|||||||
$ext = json_encode($ext);
|
$ext = json_encode($ext);
|
||||||
$res = db::name('vs_gift_bag')->where(['id'=>$gift_bag_id])->update(['ext'=>$ext]);
|
$res = db::name('vs_gift_bag')->where(['id'=>$gift_bag_id])->update(['ext'=>$ext]);
|
||||||
if($res){
|
if($res){
|
||||||
|
//删除缓存
|
||||||
|
$cacheKey = "xlh_config_13";
|
||||||
|
cache::rm($cacheKey);
|
||||||
return V(1,"成功");
|
return V(1,"成功");
|
||||||
}else{
|
}else{
|
||||||
return V(0,"失败");
|
return V(0,"失败");
|
||||||
|
|||||||
Reference in New Issue
Block a user