Skip to content

Commit c51c268

Browse files
authored
fix: 示例错误,shipping_list应该是一个对象数组 (#2904)
1 parent 994a75f commit c51c268

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

docs/src/5.x/mini-program/shipping.md

+17-13
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,15 @@ $data = [
1515
'logistics_type' => 4,
1616
'delivery_mode' => 1,
1717
'shipping_list' => [
18-
'tracking_no' => '323244567777',
19-
'express_company' => 'DHL',
20-
'item_desc' => '微信红包抱枕*1个',
21-
'contact' => [
22-
'consignor_contact' => '189****1234',
23-
'receiver_contact' => '189****1234'
24-
],
18+
[
19+
'tracking_no' => '323244567777',
20+
'express_company' => 'DHL',
21+
'item_desc' => '微信红包抱枕*1个',
22+
'contact' => [
23+
'consignor_contact' => '189****1234',
24+
'receiver_contact' => '189****1234'
25+
],
26+
],
2527
],
2628
'upload_time' => '2022-12-15T13:29:35.120+08:00',
2729
'payer' => [
@@ -51,12 +53,14 @@ $app->shipping->uploadShippingInfo($data);
5153
'logistics_type' => 4,
5254
'delivery_mode' => 1,
5355
'shipping_list' => [
54-
'tracking_no' => '323244567777',
55-
'express_company' => 'DHL',
56-
'item_desc' => '微信红包抱枕*1个',
57-
'contact' => [
58-
'consignor_contact' => '189****1234',
59-
'receiver_contact' => '189****1234'
56+
[
57+
'tracking_no' => '323244567777',
58+
'express_company' => 'DHL',
59+
'item_desc' => '微信红包抱枕*1个',
60+
'contact' => [
61+
'consignor_contact' => '189****1234',
62+
'receiver_contact' => '189****1234'
63+
],
6064
],
6165
],
6266
],

0 commit comments

Comments
 (0)