shish 1 anno fa
parent
commit
f3f675d2ee
1 ha cambiato i file con 6 aggiunte e 1 eliminazioni
  1. 6 1
      app-ghs/controllers/OrderController.php

+ 6 - 1
app-ghs/controllers/OrderController.php

@@ -2671,8 +2671,13 @@ class OrderController extends BaseController
                         $productIds[] = $productId;
                     }
                 }
-
+                if (empty($productIds)) {
+                    util::fail('没有识别出花材');
+                }
                 $productInfo = ProductClass::getByIds($productIds, null, 'id');
+                if (empty($productInfo)) {
+                    util::fail('没有找到有效花材');
+                }
 
                 $mat = [];
                 foreach ($arr as $k => $v) {