Browse Source

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

lizhen_gitee 1 year ago
parent
commit
2314bde172
1 changed files with 1 additions and 0 deletions
  1. 1 0
      application/api/controller/Party.php

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

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