Browse Source

美团对接-商品配置

fang 1 year ago
parent
commit
d73f166f70
1 changed files with 1 additions and 1 deletions
  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()){
         if(!$thirdOrders->isEmpty()){
             $orderData['work_id'] = $thirdOrders->work_id;
             $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']);
             $goods = Goods::findOrEmpty($product['goods_id']);
             $pattern = '/(?:省|市)([\w\s]+市)/u';
             $pattern = '/(?:省|市)([\w\s]+市)/u';
             Db::startTrans();
             Db::startTrans();