fang 1 год назад
Родитель
Сommit
d73f166f70
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/common/logic/ThirdOrderLogic.php

+ 1 - 1
app/common/logic/ThirdOrderLogic.php

@@ -115,7 +115,7 @@ class ThirdOrderLogic extends BaseLogic
         if(!$thirdOrders->isEmpty()){
             $orderData['work_id'] = $thirdOrders->work_id;
         }
-        if(empty($orderData['work_id']) and !$product->isEmpty()){
+        if(empty($orderData['work_id']) and !$product->isEmpty() and !empty($product['goods_id'])){
             $goods = Goods::findOrEmpty($product['goods_id']);
             $pattern = '/(?:省|市)([\w\s]+市)/u';
             Db::startTrans();