|
|
@@ -860,9 +860,11 @@ class OrderLogic extends BaseLogic
|
|
|
if ($parcel['send_type'] == DeliveryEnum::NO_EXPRESS) {
|
|
|
$logisticsInfo['traces'] = ['无需物流'];
|
|
|
} else {
|
|
|
+
|
|
|
if (empty($express_type)) {
|
|
|
$logisticsInfo['traces'] = ['暂无物流信息'];
|
|
|
}
|
|
|
+
|
|
|
//快递配置设置为快递鸟时
|
|
|
if($express_type === 'express_bird') {
|
|
|
$expressage = (new Kdniao($express_bird['ebussiness_id'], $express_bird['app_key']));
|
|
|
@@ -871,6 +873,7 @@ class OrderLogic extends BaseLogic
|
|
|
$expressage = (new Kd100($express_hundred['customer'], $express_hundred['app_key']));
|
|
|
$express_field = 'code100';
|
|
|
}
|
|
|
+
|
|
|
//快递编码
|
|
|
$express_code = Express::where('id',$parcel['express_id'])->value($express_field);
|
|
|
//获取物流轨迹
|
|
|
@@ -922,6 +925,7 @@ class OrderLogic extends BaseLogic
|
|
|
'parcel_info' => $parcelInfo,
|
|
|
];
|
|
|
}
|
|
|
+
|
|
|
$result['delivery_info'] = $deliveryInfo;
|
|
|
|
|
|
return $result;
|