فهرست منبع

默认单位优化

林琦海 5 سال پیش
والد
کامیت
edcce88de9
2فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 2 2
      biz-ghs/product/classes/ProductClass.php
  2. 2 2
      biz/item/classes/PtItemClass.php

+ 2 - 2
biz-ghs/product/classes/ProductClass.php

@@ -852,8 +852,8 @@ class ProductClass extends BaseClass
         $data['cover'] = isset($data['cover']) && !empty($data['cover']) ? $data['cover'] : '';
         $ratio = $data['ratio'] ?? false;
         $weight = $data['weight'] ?? false;
-        $data['bigUnit'] = $data['bigUnit'] ?? '';
-        $data['smallUnit'] = $data['smallUnit'] ?? '';
+        $data['bigUnit'] = $data['bigUnit'] ?? '';
+        $data['smallUnit'] = $data['smallUnit'] ?? '';
         $data['shopId'] = $data['shopId'] ?? 0;
         $currentShopId = $data['shopId'];
         $data['sjId'] = $data['sjId'] ?? 0;

+ 2 - 2
biz/item/classes/PtItemClass.php

@@ -77,8 +77,8 @@ class PtItemClass extends BaseClass
         $data['cover'] = $data['cover'] ?? '';
         $ratio = $data['ratio'] ?? 0;
         $weight = $data['weight'] ?? false;
-        $data['bigUnit'] = $data['bigUnit'] ?? '';
-        $data['smallUnit'] = $data['smallUnit'] ?? '';
+        $data['bigUnit'] = $data['bigUnit'] ?? '';
+        $data['smallUnit'] = $data['smallUnit'] ?? '';
 
         if (preg_match("/^[1-9][0-9]*$/", $data['ratio']) == false || $data['ratio'] <= 0) {
             util::fail('比例请填写整数,并且大于0');