【即时配送】关于签名delivery_sign的问题?
调用https://api.weixin.qq.com/cgi-bin/express/local/business/delivery/getall接口时,
出参:
{"resultcode":0,"resultmsg":"ok","list":[{"delivery_id":"SFTC","delivery_name":"顺丰同城急送"},{"delivery_id":"SS","delivery_name":"闪送"},{"delivery_id":"MTPS","delivery_name":"美团配送"},{"delivery_id":"DADA","delivery_name":"达达"}]}
调用https://api.weixin.qq.com/cgi-bin/express/local/business/order/pre_add接口时,
入参:
{
"access_token": "43_COneNUzFSEDkPIoxaaqAeb7LP_m48Fs-VaQifM2hdFmtc0GKQyViZQg2Rl05ivHQYrWFmiUqpgry6rPrIbs7KkteSaue0XOVmXwmVr-7qjWp6qozT9hLuevN1gz1rOfMEzrkYOZgVQChXS3HGAFjAEALFK",
"shop": "{\"goods_count\":2.0,\"goods_name\":\"自然堂洁面乳-计数wyf\",\"img_url\":\"xxx\",\"wxa_path\":\"xxx\"}",
"receiver": "{\"address\":\"霄云里8号(霄云里8号近首汽加油站)\",\"address_detail\":\"测试\",\"city\":\"北京市\",\"lat\":39.968636,\"lng\":116.471089,\"name\":\"测试\",\"phone\":\"18514281871\"}",
"sender": "{\"address\":\"北京市朝阳区霄云里8号\",\"address_detail\":\"[门店地址]\",\"city\":\"北京市\",\"lat\":39.968422,\"lng\":116.471089,\"name\":\"北京霄云里店\",\"phone\":\"010-3425423\"}",
"openid": "\"oTiD25e-t84SDUWGFYLEw2_zlwB0\"",
"delivery_id": "TEST",
"shopid": "test_shop_id",
"delivery_sign": "a93d8d6bae9a9483c1b1d4e8670e7f6226ec94cb",
"shop_order_id": "test_shop_order_id",
"cargo": "{\"cargo_first_class\":\"其他\",\"cargo_second_class\":\"其他\",\"goods_value\":212.2,\"goods_weight\":0.3}",
"shop_no": "1"
}
出参:
{"errcode":40001,"errmsg":"invalid credential, access_token is invalid or not latest rid: 6062e421-52486119-412f370b"}
怀疑的问题:第一个接口能通说明access_token是没有问题的,第二个接口提示access_token无效,怀疑是接口入参的问题。检查了入参,感觉是这个签名的字段不对。对接的是顺丰同城急送,顺丰的签名规则和微信文档提供的签名规则不一致,应该采用哪种呢?