酒吧房:->相关接口提交-接口bug修改
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user