巡乐会抽奖接口提交.-联调

This commit is contained in:
2025-09-01 09:48:14 +08:00
parent 6c41309eb9
commit 9fdac8d628
2 changed files with 5 additions and 0 deletions

View File

@@ -213,7 +213,9 @@ class BlindBox extends adminApi
$data['is_world_show'] = $is_world_show;
$data['weight'] = $weight;
if(!empty($gift_id)){
$gift = db::name('vs_gift')->where(['gid'=>$gift_id])->find();
$data['foreign_id'] = $gift_id;
$data['name'] = $gift['gift_name'];
}
$res = db::name($this->table)->where(['id'=>$id])->update($data);
if($res){