接口参数为int参数,使用736269920301441024传参之后第三方接收到为736269920301441000,精度丢失导致返回的结果不同。
同样的参数和配置使用postman是正常的
接口地址:https://openapi.qmai.co/v3/baking/customer/couponCompute
接口参数:
{
"grantCode":"8f1c771e17",
"nonce":1,
"openId":"f1f898d7acbcf41e4d472f1910b5fb97",
"params":{
"couponCode":"736272258019909633",
"items":[
{
"buyRemarks":null,
"checkCode":0,
"checkMessage":"",
"checkStatus":true,
"goodsId":"01",
"goodsType":"2",
"groupPrice":10,
"groupPurchase":0,
"image":"",
"isMemberPrice":"1",
"itemId":"010340033",
"itemSign":"",
"itemSkuId":"",
"itemUniqueId":"",
"itemUnit":"",
"limitTimeFlag":0,
"limitTimePrice":"10",
"marketPrice":"10",
"memberPrice":"10",
"name":"焦糖西点",
"num":"1",
"packageAmount":10,
"preferencePrice":"10",
"prepareTime":10,
"salePrice":"10",
"skuId":"",
"specifyPrice":10,
"stock":100,
"tradeMark":"010340033"
}
],
"multiMark":"01",
"userCouponId":"736272258019909633",
"userId":736269920301441024
},
"timestamp":1653450363,
"token":"SJsjFxvDseHImljVsSIbzWQaxJg%3d"
}
收到!我们正在优化精度问题,后续版本会优化好。非常感谢您的反馈~