|
|
@@ -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) {
|