Kirin il y a 1 an
Parent
commit
976e5e6c2e
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      app/services/order/StoreOrderServices.php

+ 1 - 1
app/services/order/StoreOrderServices.php

@@ -1530,7 +1530,7 @@ HTML;
             'today' => $today,
             'yesterday' => $yesterday,
             'today_ratio' => $today_ratio,
-            'total' => $integralService->getIntegralSum([], 'num') - $integralService->getIntegralSum([], 'sent_num'),
+            'total' => bcsub((string)$integralService->getIntegralSum([], 'num'), (string)$integralService->getIntegralSum([], 'sent_num'), 2),
             'date' => '今日'
         ];