shish 3 gadi atpakaļ
vecāks
revīzija
5b66ad3160

+ 11 - 0
app-ghs/controllers/CheckOrderController.php

@@ -124,6 +124,17 @@ class CheckOrderController extends BaseController
         if (!is_array($ghsItemInfo)) {
             util::fail('花材格式不正确');
         }
+
+        if ($this->shopId == 2167) {
+            foreach ($ghsItemInfo as $key => $val) {
+                $pId = $val['productId'] ?? 0;
+                $info = ProductClass::getById($pId, true);
+                if ($info->mainId != 2128) {
+                    unset($ghsItemInfo[$key]);
+                }
+            }
+        }
+
         //判断花材格式,是否属于当前门店
         ProductClass::valid($ghsItemInfo, $this->mainId);
 

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 2 - 0
console/controllers/ItemController.php


Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels