签名计算是按照这里的算法,测试过,按照第9项里的数据计算出的delivery_sign是对的。可就是使用自己的数据一直报“签名校验失败”,请问哪里出了问题
POST 数据:
{
"appid": "wxe70f147b350ab5b4",
"shopid": "M20283590539",
"shop_order_id": "A2303100000278C",
"shop_no": "2709286",
"delivery_sign": "429e5b7494be4692e3be613daa0f9fd19e3bcd09",
"delivery_id": "SS",
"openid": "oibbx5eIwDkt21aMzO2DLEi_M0l0",
"sender": {
"name": "米柚蛋糕店",
"city": "南京市",
"address": "栖霞区",
"address_detail": "学衡路1号九霄梦天地A栋804",
"phone": "13813982546",
"lng": 118.91715,
"lat": 32.092545,
"coordinate_type": 0
},
"receiver": {
"name": "沐沐",
"city": "南京市",
"address": "江苏省南京市栖霞区文枢东路1号仙林科技城仙林医院(学思路店)",
"address_detail": "A804",
"phone": "18101274651",
"lng": 118.90864,
"lat": 32.096478,
"coordinate_type": 0
},
"cargo": {
"goods_value": 0.01,
"goods_weight": 1,
"goods_detail": null,
"goods_pickup_info": "",
"goods_delivery_info": "",
"cargo_first_class": "蛋糕",
"cargo_second_class": "蛋糕"
},
"order_info": {
"delivery_service_code": "1",
"is_direct_delivery": 1
},
"shop": {
"wxa_path": "/pages/my-orders/index",
"img_url": "https://media.imwatt.com/product/s/10200",
"goods_name": "商品",
"goods_count": 1,
"detail_list": [{
"goods_name": "软糯小甜点4英寸",
"goods_img_url": "https://media.imwatt.com/product/s/10200"
}]
},
"delivery_token": ""
}
返回数据:
{"resultcode":1,"resultmsg":"签名校验失败","fee":0,"deliverfee":0,"couponfee":0,"tips":0,"distance":0,"waybill_id":"","order_status":0,"finish_code":0,"pickup_code":0,"dispatch_duration":0,"sender_lng":0,"sender_lat":0}
------------ 分割线 ----------------
计算签名用的数据:
shopid:M20283590539
shop_order_id:A2303100000278C
app_secret:IXm************dlDPmSGA2gZsaSRoF
你好,这里可以确认一下AppSecret和shopid 字段是否对应哈,这里的签名校验是运力那边的逻辑,如果确认后仍有问题,我们这边再和运力那边沟通。
下图是从微信后台上展示的shopid和闪送后台的app secret
1.登录闪送商家版pc,从微信开发者平台授权后,闪送商家版pc中能看到这个秘钥
闪送商家版pc地址:https://seller.ishansong.com/setting/setting