|
@@ -180,9 +180,9 @@ class OrderPackageReceivedSyncService
|
|
|
foreach ($logisticResponses as $logisticResponse) {
|
|
foreach ($logisticResponses as $logisticResponse) {
|
|
|
if (empty($logisticResponse)) continue;
|
|
if (empty($logisticResponse)) continue;
|
|
|
$orderPackage = OrderPackage::query()->where('logistic_number', $logisticResponse['logistic_number'])->first();
|
|
$orderPackage = OrderPackage::query()->where('logistic_number', $logisticResponse['logistic_number'])->first();
|
|
|
- //如果已经收货,状态改为已收件
|
|
|
|
|
|
|
+ //如果已经收货,状态改为已签收
|
|
|
if ($logisticResponse['received_at']??false) {
|
|
if ($logisticResponse['received_at']??false) {
|
|
|
- $logisticResponse['status'] = '已收件';
|
|
|
|
|
|
|
+ $logisticResponse['status'] = '已签收';
|
|
|
}
|
|
}
|
|
|
//未查询到路由信息改为 揽件异常
|
|
//未查询到路由信息改为 揽件异常
|
|
|
if (empty($logisticResponse['transfer_status'])) {
|
|
if (empty($logisticResponse['transfer_status'])) {
|
|
@@ -343,7 +343,7 @@ class OrderPackageReceivedSyncService
|
|
|
$conclusion |= !empty($data['transfer_status']) ? $IS_ROUTED : 0;
|
|
$conclusion |= !empty($data['transfer_status']) ? $IS_ROUTED : 0;
|
|
|
$conclusion |= ($delivered_duration > $VALID_HOURS) ? $IS_IN_VALID_TIME : 0;
|
|
$conclusion |= ($delivered_duration > $VALID_HOURS) ? $IS_IN_VALID_TIME : 0;
|
|
|
$conclusion |= ($orderPackage->weighed_at) ? $IS_WEIGHED : 0;
|
|
$conclusion |= ($orderPackage->weighed_at) ? $IS_WEIGHED : 0;
|
|
|
- $conclusion |= ($data['status'] == '已收件') ? $IS_RECEIVED : 0;
|
|
|
|
|
|
|
+ $conclusion |= ($data['status'] == '已签收') ? $IS_RECEIVED : 0;
|
|
|
$conclusion |= ($data['status'] == '派送中') ? $IS_SENDING : 0;//
|
|
$conclusion |= ($data['status'] == '派送中') ? $IS_SENDING : 0;//
|
|
|
$conclusion |= ($last_routed_duration > $SHORT_RESPONSE_HOURS && $last_routed_duration < $LONG_RESPONSE_HOURS) ? $IS_SHORT_NO_RESPONSE : 0;
|
|
$conclusion |= ($last_routed_duration > $SHORT_RESPONSE_HOURS && $last_routed_duration < $LONG_RESPONSE_HOURS) ? $IS_SHORT_NO_RESPONSE : 0;
|
|
|
$conclusion |= ($last_routed_duration > $LONG_RESPONSE_HOURS) ? $IS_LONG_NO_RESPONSE : 0;
|
|
$conclusion |= ($last_routed_duration > $LONG_RESPONSE_HOURS) ? $IS_LONG_NO_RESPONSE : 0;
|