ソースを参照

美团对接-商品配置

fang 1 年間 前
コミット
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();