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

This commit is contained in:
2026-01-07 18:55:06 +08:00
parent 227ad92a2f
commit f8efd223ee
2 changed files with 32 additions and 8 deletions

View File

@@ -104,11 +104,14 @@ class BarRoom extends Model
if(empty($gift)){
return ['code' => 0, 'msg' => '礼物不存在', 'data' => null];
}
//当前用户钱包余额(金币)
$wallet_coin = db::name('user_wallet_coin')->where(['user_id' => $user_id])->value('coin') ?? 0;
$return_data = [
'gift_id' => $pit_gift['gift_id'],
'gift_name' => $gift['gift_name'],
'base_image' => $gift['base_image'],
'gift_price' => $gift['gift_price'],
'user_wallet_coin' => $wallet_coin,
];
}
return ['code' => 1, 'msg' => '成功', 'data' => $return_data];