根据文档 商业能力 /交易组件 /自定义版交易组件及开放接口 /服务端接口 /订单接口 /生成订单
向shop/order/add发起请求,返回“订单金额计算错误”。可是金额是完全按照计算规则计算的。
之后使用示例中的价格参数,依然提示上述错误内容。
我的参数:
{
"create_time": "2022-08-04 09:46:45",
"out_order_id": "WXDD1",
"openid": "oqXKH5N-0iFt-G-XgGWlBipsoD50",
"path": "path",
"out_user_id": "150****3371",
"order_detail": {
"product_infos": [{
"out_product_id": "950671",
"out_sku_id": "950671020001",
"product_cnt": 1,
"sale_price": 1,
"sku_real_price": 1,
"path": "path",
"title": "大衣",
"head_img": "http://img"
}]
},
"price_info": {
"order_price": 1,
"freight": 0
},
"delivery_detail": {
"delivery_type": 1
},
"address_info": {
"receiver_name": "金",
"detailed_address": "东电",
"tel_number": "156****4351",
"province": "浙",
"city": "杭",
"town": "城"
},
"fund_type": 1,
"expire_time": 1659578505,
"trace_id": "1_lkbvxXM-MpYZMC5hoIa8c1rqdFyUjMLoKNYsaKBFRoE"
}
product_cnt = 1
sale_price = 1
sku_real_price = 1
freight = 0
order_price = 1
本次请求只有一个sku。
order_price = sum(sale_price) + freight - discounted_price + additional_price
1 = 1 + 0 - 0 + 0
order_price = sum(sku_real_price) + freight + additional_price
1 = 1 + 0 + 0
解决了么。一样问题,真是一堆BUG
谢邀,这个真不清楚