|
@@ -139,6 +139,7 @@ class Party extends Common
|
|
|
|
|
|
}
|
|
|
|
|
|
+ //此时 $giftValue,$getValue,$hotValue是相等的
|
|
|
$hotValue = $getValue;
|
|
|
|
|
|
// 转换声币后 再进行抽点设置
|
|
@@ -149,13 +150,13 @@ class Party extends Common
|
|
|
} else {
|
|
|
$partyInfo = \app\common\model\Party::field("user_id,platRate,guilderRate")->where(["id"=>$party_id])->find();
|
|
|
// 获取系统配置信息
|
|
|
- $platRate = $partyInfo->platRate; // 平台抽成百分比
|
|
|
+ $platRate = $partyInfo->platRate; // 平台抽成百分比
|
|
|
$guilderRate = $partyInfo->guilderRate; // 工会长抽成百分比
|
|
|
}
|
|
|
|
|
|
- $platValue = bcmul($platRate/100,$getValue,2); //平台抽成
|
|
|
+ $platValue = bcmul($platRate/100 ,$getValue,2); //平台抽成
|
|
|
$guilderValue = bcmul($guilderRate/100,$getValue,2);// 工会长抽成
|
|
|
- $getValue = bcsub(bcsub($getValue,$platValue,2),$guilderValue,2);//减去抽成剩余价值
|
|
|
+ $getValue = bcsub(bcsub($getValue ,$platValue,2),$guilderValue,2);//减去抽成剩余价值
|
|
|
|
|
|
// $gif_image = $is_back==1?$giftInfo["gif_image"]:$giftInfo["special"];
|
|
|
$returnData = [];
|
|
@@ -207,7 +208,7 @@ class Party extends Common
|
|
|
$res2 = true;
|
|
|
|
|
|
// 扣除当前用户钻石余额
|
|
|
- $rs_wallet = model('wallet')->lockChangeAccountRemain($userauthid, $giftValue, '-', $userInfo["jewel"], "赠送礼物:'" . $giftInfo["name"] . "',扣除" . $giftValue . "钻石!", 3,'jewel');
|
|
|
+ $rs_wallet = model('wallet')->lockChangeAccountRemain($userauthid, $giftValue, '-', $this->auth->jewel, "赠送礼物:'" . $giftInfo["name"] . "',扣除" . $giftValue . "钻石!", 3,'jewel');
|
|
|
if($rs_wallet['status'] == false){
|
|
|
$this->error($rs_wallet['msg']);
|
|
|
Db::rollback();
|