shish 3 anos atrás
pai
commit
887c3f2972
1 arquivos alterados com 11 adições e 0 exclusões
  1. 11 0
      app-ghs/controllers/CheckOrderController.php

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

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