shish 1 ano atrás
pai
commit
2db2d30da0
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      app-hd/controllers/OrderController.php

+ 1 - 1
app-hd/controllers/OrderController.php

@@ -185,7 +185,7 @@ class OrderController extends BaseController
                 if ($debtPrice > $remainDebtPrice) {
                 if ($debtPrice > $remainDebtPrice) {
                     $hasPayDebt = bcsub($debtPrice, $remainDebtPrice, 2);
                     $hasPayDebt = bcsub($debtPrice, $remainDebtPrice, 2);
                 }
                 }
-                $list[$key]['hasPayAmount'] = $hasPayDebt;
+                $list[$key]['hasPayAmount'] = floatval($hasPayDebt);
             }
             }
         }
         }
         $result = ['customInfo' => $info, 'list' => $list];
         $result = ['customInfo' => $info, 'list' => $list];