shish il y a 2 ans
Parent
commit
c29b28dec6
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 3 3
      biz/ghs/classes/GhsClass.php

+ 3 - 3
biz/ghs/classes/GhsClass.php

@@ -230,9 +230,9 @@ class GhsClass extends BaseClass
             $list[$key]['openStartTime'] = $shopInfo[$currentShopId]['openStartTime'] ?? '';
             $list[$key]['openEndTime'] = $shopInfo[$currentShopId]['openEndTime'] ?? '';
 
-            $list[$key]['meetNum'] = $shopInfo[$currentShopId]['meetNum'] ?? 0;
-            $list[$key]['meetAmount'] = $shopInfo[$currentShopId]['meetAmount'] ?? 0;
-            $list[$key]['cutAmount'] = $shopInfo[$currentShopId]['cutAmount'] ?? 0;
+            $list[$key]['meetNum'] = $shopInfo[$currentShopId]['meetNum'] ? floatval($shopInfo[$currentShopId]['meetNum']) : 0;
+            $list[$key]['meetAmount'] = $shopInfo[$currentShopId]['meetAmount'] ? floatval($shopInfo[$currentShopId]['meetAmount']) : 0;
+            $list[$key]['cutAmount'] = $shopInfo[$currentShopId]['cutAmount'] ? floatval($shopInfo[$currentShopId]['cutAmount']) : 0;
 
             $count = PurchaseClass::getCount(['ghsId' => $val['id'], 'debt' => PurchaseClass::DEBT_YES]);
             $list[$key]['debtNum'] = $count;