|
@@ -1554,7 +1554,7 @@ class Party extends Common
|
|
|
|
|
|
if($giftcount < $allCount) $this->error("背包数量不足");
|
|
if($giftcount < $allCount) $this->error("背包数量不足");
|
|
$giftValue = $giftInfo["value"] * $number;
|
|
$giftValue = $giftInfo["value"] * $number;
|
|
- $getValue = $giftInfo["value"] * $number;
|
|
|
|
|
|
+ $getValue = $giftInfo["value"] * $number;
|
|
} else {
|
|
} else {
|
|
// // 不可以赠送给自己
|
|
// // 不可以赠送给自己
|
|
// if(in_array($userauthid,$user_id_arr)) $this->error("不可以赠送给自己!");
|
|
// if(in_array($userauthid,$user_id_arr)) $this->error("不可以赠送给自己!");
|
|
@@ -1613,7 +1613,7 @@ class Party extends Common
|
|
|
|
|
|
$platValue = bcmul($platRate/100,$getValue,2);
|
|
$platValue = bcmul($platRate/100,$getValue,2);
|
|
$guilderValue = bcmul($guilderRate/100,$getValue,2);
|
|
$guilderValue = bcmul($guilderRate/100,$getValue,2);
|
|
- $getValue = bcsub(bcsub($getValue,$platValue),$guilderValue);
|
|
|
|
|
|
+ $getValue = bcsub(bcsub($getValue,$platValue,2),$guilderValue,2);
|
|
|
|
|
|
// $gif_image = $is_back==1?$giftInfo["gif_image"]:$giftInfo["special"];
|
|
// $gif_image = $is_back==1?$giftInfo["gif_image"]:$giftInfo["special"];
|
|
$returnData = [];
|
|
$returnData = [];
|
|
@@ -1847,7 +1847,7 @@ class Party extends Common
|
|
$data = [];
|
|
$data = [];
|
|
$data["user_id"] = $user_ids;
|
|
$data["user_id"] = $user_ids;
|
|
$data["party_id"] = $party_id?$party_id:0;
|
|
$data["party_id"] = $party_id?$party_id:0;
|
|
- $data["gift_value"] = $getValue;
|
|
|
|
|
|
+ $data["gift_value"] = $giftValue;
|
|
$data["plat_value"] = $platValue;
|
|
$data["plat_value"] = $platValue;
|
|
$data["guilder_value"] = $guilderValue;
|
|
$data["guilder_value"] = $guilderValue;
|
|
$data["createtime"] = time();
|
|
$data["createtime"] = time();
|