From aa709a27666b425fb4b8f864f5200b0597719e6a Mon Sep 17 00:00:00 2001 From: andy Date: Fri, 19 Mar 2021 15:50:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9k5=E9=80=82=E9=85=8D=20?= =?UTF-8?q?=E5=85=AB=E7=88=AA=E9=B1=BC=E7=89=A9=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/platforms/K5Platform.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/platforms/K5Platform.php b/src/platforms/K5Platform.php index e0808b7..47b6c7f 100644 --- a/src/platforms/K5Platform.php +++ b/src/platforms/K5Platform.php @@ -97,7 +97,6 @@ public function createOrder(Order $order): OrderResult { $parameter = $this->formatOrder($order); - try { $result = $this->client->post($this->host . "/PostInterfaceService?method=createOrder", [ 'body' => json_encode($parameter, true) @@ -326,6 +325,7 @@ protected function formatOrder(Order $orderClass): array 'Province'=>$orderClass->recipient->state, // 省州 'City'=>$orderClass->recipient->city, // 城市 'Post'=>$orderClass->recipient->zip, // 邮编 + 'Email'=>$orderClass->recipient->email ], 'Sender'=>[ 'Name'=>$orderClass->shipper->name, // 名称 @@ -337,6 +337,7 @@ protected function formatOrder(Order $orderClass): array 'Province'=>$orderClass->shipper->state, // 省州 'City'=>$orderClass->shipper->city, // 城市 'Post'=>$orderClass->shipper->zip, // 邮编 + 'Email'=>$orderClass->shipper->email ], 'OrderItems'=>$items, // 订单明细产品信息