酒吧房:->相关接口提交-bug修改

This commit is contained in:
2026-01-05 18:56:05 +08:00
parent d1cdb23175
commit 499f9407b6

View File

@@ -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()]);