Explorar o código

韵达注册接口参数填充

ANG YU %!s(int64=4) %!d(string=hai) anos
pai
achega
e9aa4cd895
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Services/LogisticYDService.php

+ 1 - 1
app/Services/LogisticYDService.php

@@ -48,7 +48,7 @@ class LogisticYDService
                 "receiver" => [
                     "address" => $order->address,
                     "city" => $order->city,
-                    "county" => $order->district,
+                    "county" => $order->district ?? $order->city,
                     "name" => $order->consignee_name,
                     "phone" => $order->consignee_phone,
                     "province" => $order->province ?? $order->city,