shish 3 gadi atpakaļ
vecāks
revīzija
d122678217
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      app-ghs/controllers/ClearController.php

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

@@ -107,7 +107,7 @@ class ClearController extends BaseController
         $list = ClearService::getClearList($where);
 
         $totalAmount = ClearClass::sum(['ghsShopId' => $this->shopId, 'status' => 2, 'customId' => $customId], 'realPrice');
-        $list['totalAmount'] = $totalAmount;
+        $list['totalAmount'] = floatval($totalAmount);
 
         util::success($list);
     }