wesmiler преди 2 седмици
родител
ревизия
f6b98567f1
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      app/Services/Api/GoodsService.php

+ 1 - 1
app/Services/Api/GoodsService.php

@@ -359,7 +359,7 @@ class GoodsService extends BaseService
                 $result['discount_total'] = moneyFormat($orderTotal - $result['order_total'],2);
             }
 
-            $result['pay_total'] = moneyFormat($result['order_total'] + $result['delivery_fee'],2);
+            $result['pay_total'] = floatval(moneyFormat($result['order_total'] + $result['delivery_fee'],2));
             return $result;
         }