- 在订单钩子中调用上传物流信息时添加 itemDesc 参数 - 微信小程序支付 trait 中支持 shipping_list 商品描述信息 - 完善微信支付发货信息上报的数据结构
@@ -80,6 +80,12 @@ trait MiniAppTrait
],
];
+ } else {
+ $data['shipping_list'] = [
+ [
+ 'item_desc' => $itemDesc,
+ ],
+ ];
}
$response = WechatPayBuilder::getMiniApp()->getClient()->postJson('wxa/sec/order/upload_shipping_info', $data);
$result = $response->getContent();