Browse Source

会员充值

gorden 5 months ago
parent
commit
8f24ceca40
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/admin/controller/notify/RechargeController.php

+ 1 - 1
app/admin/controller/notify/RechargeController.php

@@ -127,7 +127,7 @@ class RechargeController
                 ->first();
             $addedNbr = $goodsAttributeJson['added'] && $goodsAttributeJson['added']['nbr'] ? $goodsAttributeJson['added']['nbr'] : 0;
             $payAmount = floatval($payDetail->pay_amount);
-            $addedAmount = $payAmount * $addedNbr;
+            $addedAmount = round($payAmount * $addedNbr, 2);
             $added = $memberAccount->member_account_added + $addedAmount;
             $income = $memberAccount->member_account_income + $payAmount;
             // 保留原数据