瀏覽代碼

赠送礼物记录里也记录抽成数值

lizhen_gitee 1 年之前
父節點
當前提交
6707a13415
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      application/api/controller/Party.php

+ 4 - 0
application/api/controller/Party.php

@@ -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);