酒吧房:->相关接口提交-bug修改
This commit is contained in:
@@ -125,9 +125,6 @@ class GiftNew extends Model
|
||||
if(!$gift_info){
|
||||
return ['code' => 0, 'msg' => '礼物不存在','data' =>null];
|
||||
}
|
||||
if(empty($new_gift_name)){
|
||||
return ['code' => 0, 'msg' => '请输入礼物名称','data' =>null];
|
||||
}
|
||||
$user_custom_gift = db::name('vs_user_custom_gift')->where(['user_id' => $user_id,'gift_id'=>$gift_id])->find();
|
||||
if($user_custom_gift){
|
||||
db::name('vs_user_custom_gift')->where(['user_id' => $user_id,'gift_id'=>$gift_id])->update(['new_gift_name'=>$new_gift_name,'updatetime'=>time()]);
|
||||
|
||||
Reference in New Issue
Block a user