|
@@ -2047,7 +2047,7 @@ class Party extends Api
|
|
|
}
|
|
|
|
|
|
//爆币
|
|
|
- $res_baobi = $this->baobi($this->auth->id,$data["gift_id"],$giftCountValue);
|
|
|
+ $res_baobi = $this->baobi($this->auth->id,$data["gift_id"],$giftCountValue,$giftInfo["value"]);
|
|
|
if($res_baobi === false){
|
|
|
Db::rollback();
|
|
|
$this->error('爆币失败');
|
|
@@ -2112,7 +2112,7 @@ class Party extends Api
|
|
|
}
|
|
|
|
|
|
//gift_id必须是爆币礼物才可以
|
|
|
- public function baobi($user_id,$gift_id,$pay_total){
|
|
|
+ public function baobi($user_id,$gift_id,$pay_total,$giftInfo_value){
|
|
|
|
|
|
//奖项参数
|
|
|
$conf_arr = Db::name('gift_baobi_config')->where('gift_id',$gift_id)->select();
|
|
@@ -2175,7 +2175,7 @@ class Party extends Api
|
|
|
$result = $conf_column[$rid];
|
|
|
|
|
|
//爆币金额
|
|
|
- $baobi_total = bcmul($pay_total,$result['beilv'],0);
|
|
|
+ $baobi_total = bcmul($giftInfo_value,$result['beilv'],0);
|
|
|
|
|
|
//写入爆币记录,不论有没有钱。全都写入其实是为了方便查日志,比在money_log里找范围更小,而且可删除
|
|
|
$data = [];
|