Эх сурвалжийг харах

同步快递信息到orderPackage 圆通 顺丰不打印异常信息

ANG YU 4 жил өмнө
parent
commit
a2f6c3d528

+ 1 - 1
app/Jobs/LogisticYTOSync.php

@@ -58,7 +58,7 @@ class LogisticYTOSync implements ShouldQueue
         try {
             if ($formattedData && isset($formattedData['logistic_number'])) $this->orderPackageReceivedSyncService->update([$formattedData]);
         } catch (\Exception $e) {
-            LogService::log(LogisticYTOService::class, "YTO快递无快递单号异常", json_encode($formattedData));
+//            LogService::log(LogisticYTOService::class, "YTO快递无快递单号异常", json_encode($formattedData));
         }
     }
 }

+ 2 - 3
app/Services/LogisticSFService.php

@@ -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;
     }

+ 1 - 1
app/Services/LogisticYTOService.php

@@ -53,7 +53,7 @@ class LogisticYTOService
             try {
                 if (is_array($response))$result['logistic_number'] = $response[0]->waybill_No;
             } catch (\Exception $e) {
-                LogService::log(LogisticYTOService::class, "YTO快递信息异常", $logistic_number);
+//                LogService::log(LogisticYTOService::class, "YTO快递信息异常", $logistic_number);
                 return [
                     'logistic_number' => $logistic_number,
                 ];