出价
This commit is contained in:
@@ -99,6 +99,14 @@ class Sign extends Model
|
|||||||
return ['code' => 0, 'msg' => '网络错误,请重试!','data' => null];
|
return ['code' => 0, 'msg' => '网络错误,请重试!','data' => null];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//记录房间流水及明细
|
||||||
|
//收礼记录行为日志
|
||||||
|
$give_gift = model('api/GiveGift') -> change_user_give_gift_log($user_id,0,$sign_value,0,$sign_user_id,2,1,$room_id,0,3);
|
||||||
|
if(!$give_gift){
|
||||||
|
Db::rollback();
|
||||||
|
return ['code' => 0, 'msg' => '出价失败', 'data' => null];
|
||||||
|
}
|
||||||
|
|
||||||
//增加房间火热值hot_value
|
//增加房间火热值hot_value
|
||||||
$gift_totalaa = $sign_value * get_system_config_value('coin_charm_exp');
|
$gift_totalaa = $sign_value * get_system_config_value('coin_charm_exp');
|
||||||
db::name('vs_room')->where(['id' => $room_id])->inc('hot_value', $gift_totalaa)->inc('today_hot_value', $gift_totalaa)->update();
|
db::name('vs_room')->where(['id' => $room_id])->inc('hot_value', $gift_totalaa)->inc('today_hot_value', $gift_totalaa)->update();
|
||||||
|
|||||||
Reference in New Issue
Block a user