Skip to content

Commit

Permalink
Merge pull request #42 from liushuai/feat-k5
Browse files Browse the repository at this point in the history
修改k5系统代码适配 八爪鱼物流
  • Loading branch information
forecho authored Mar 19, 2021
2 parents 601fbae + aa709a2 commit a099019
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/platforms/K5Platform.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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, // 名称
Expand All @@ -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, // 订单明细产品信息
Expand Down

0 comments on commit a099019

Please sign in to comment.