|
|
@@ -5,7 +5,6 @@ namespace App\Services;
|
|
|
|
|
|
|
|
|
use App\Exceptions\WarningException;
|
|
|
-use App\Traits\LogisticSyncTrait;
|
|
|
use Exception;
|
|
|
use Illuminate\Http\Client\Response;
|
|
|
use Illuminate\Support\Facades\Http;
|
|
|
@@ -104,7 +103,7 @@ xml;
|
|
|
$data = $this->switchOpCodeToStatus($lastRoute, $data);
|
|
|
$data['transfer_status'] = $this->transformRoutes($routeResponse['Route']);
|
|
|
} catch (Exception $e) {
|
|
|
- throw new WarningException("单号没有查询到快递路由信息','LogisticSFService->transformSFOneToArr->{$data['logistic_number']}");
|
|
|
+// throw new WarningException("单号没有查询到快递路由信息','LogisticSFService->transformSFOneToArr->{$data['logistic_number']}");
|
|
|
} finally {
|
|
|
$data['routes_length'] = array_key_exists('transfer_status', $data) ? count($data['transfer_status']) : 0;
|
|
|
return $data;
|
|
|
@@ -196,7 +195,7 @@ xml;
|
|
|
try {
|
|
|
$response = Http::withHeaders(['Content-Type' => 'text/xml'])->get($url, ['xml' => $xml, 'verifyCode' => $verifyCode]);
|
|
|
} catch (Exception $e) {
|
|
|
- throw new WarningException("HTTP请求顺丰接口异常->{$e->getMessage()}");
|
|
|
+// throw new WarningException("HTTP请求顺丰接口异常->{$e->getMessage()}");
|
|
|
}
|
|
|
return $response;
|
|
|
}
|