|
@@ -1699,6 +1699,10 @@ class Party extends Common
|
|
|
$data["value"] = $giftValue;
|
|
|
}
|
|
|
|
|
|
+ //每个礼物都要计算平台抽成和房主抽成
|
|
|
+ $data['platvalue'] = bcmul($platRate/100,$data["value"]);
|
|
|
+ $data['guildervalue'] = bcmul($guilderRate/100,$data["value"]);
|
|
|
+
|
|
|
$data["createtime"] = time();
|
|
|
$res5 = $giftuserpartyModel->allowField(true)->save($data);
|
|
|
|