shish 2 years ago
parent
commit
c21c7b5f1c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app-ghs/controllers/TestController.php

+ 1 - 1
app-ghs/controllers/TestController.php

@@ -87,7 +87,7 @@ class TestController extends BaseController
                         $num = $orderItem->xhNum ?? 0;
                         $num = $orderItem->xhNum ?? 0;
                         $xhUnitPrice = $orderItem->xhUnitPrice ?? 0;
                         $xhUnitPrice = $orderItem->xhUnitPrice ?? 0;
 
 
-                        $now = bcmul($num, $xhUnitPrice);
+                        $now = bcmul($num, $xhUnitPrice, 2);
                         $currentAmount = bcadd($currentAmount, $now, 2);
                         $currentAmount = bcadd($currentAmount, $now, 2);
 
 
                         $remainNum = bcsub($num, $refundNum);
                         $remainNum = bcsub($num, $refundNum);