|
|
@@ -45,9 +45,10 @@ class PackageCollectingAllocation implements ShouldQueue
|
|
|
Log::warning("自动揽收失败",["message"=>$result["message"],"param"=>$this->orderPackage->logistic_number]);
|
|
|
return;
|
|
|
}
|
|
|
- if (OrderPackage::query()->where("id",$this->orderPackage->id)
|
|
|
- ->where("collecting_status",'0')->update(["collecting_status"=>'1'])!=1)
|
|
|
- Log::warning("自动揽收异常",["message"=>"未能成功修改揽收标记","param"=>$this->orderPackage->toArray()]);
|
|
|
+ $result = OrderPackage::query()->where("id",$this->orderPackage->id)
|
|
|
+ ->where("collecting_status",'0')->update(["collecting_status"=>'1']);
|
|
|
+ if ($result!=1)
|
|
|
+ Log::warning("自动揽收异常",["message"=>"未能成功修改揽收标记","param"=>$this->orderPackage->toArray(),"line"=>$result]);
|
|
|
/*$result = app("OrderService")->allocation($this->orderPackage->order->code,$this->lineNo);
|
|
|
if (mb_substr($result,0,3)=='000'){
|
|
|
if (OrderPackage::query()->where("id",$this->orderPackage->id)
|