Преглед изворни кода

日志batch_id为空的订单更新

LD пре 5 година
родитељ
комит
b1fa397e7b
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      app/Services/OrderService.php

+ 3 - 0
app/Services/OrderService.php

@@ -733,6 +733,9 @@ class OrderService
         if($orderHeader->issuepartyname != null && $orderHeader->issuepartyname != '' ){
             $shop = $dataHandlerService->getKeyValue(['name'=>$orderHeader->issuepartyname ?? '','owner_id'=>$owner->id??''],$shop_map);
         }
+        if(!$batch['id']){
+            LogService::log(__METHOD__,__FUNCTION__,'波次为空: code='.$orderHeader['orderno']);
+        }
         return [
             'code'=>$orderHeader['orderno'],
             'batch_id' =>$batch['id'] ?? null,