|
|
@@ -174,8 +174,10 @@ class CallBackHandler
|
|
|
if(count($gdos)>=2){
|
|
|
noticeUtil::push("xhGhsDeliveryOrder ghsOrderId={$order->id} 有两笔以上是在配送中");
|
|
|
$gdo = $gdos[0];
|
|
|
- }else{
|
|
|
+ }elseif(count($gdos)==1){
|
|
|
$gdo = $gdos[0];
|
|
|
+ }else{
|
|
|
+ $gdo = null;
|
|
|
}
|
|
|
return $gdo;
|
|
|
} else {
|
|
|
@@ -187,8 +189,10 @@ class CallBackHandler
|
|
|
if(count($hdos)>=2){
|
|
|
noticeUtil::push("xhHdDeliveryOrder hdOrderId={$order->id} 有两笔以上是在配送中");
|
|
|
$hdo = $hdos[0];
|
|
|
- }else{
|
|
|
+ }elseif(count($hdos)==1){
|
|
|
$hdo = $hdos[0];
|
|
|
+ }else{
|
|
|
+ $hdo = null;
|
|
|
}
|
|
|
return $hdo;
|
|
|
}
|