收藏
回答

【即时配送】下单时(闪送平台)报“签名校验失败”?

签名计算是按照这里的算法,测试过,按照第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

最后一次编辑于  2023-03-12
回答关注问题邀请回答
收藏

1 个回答

  • Constlu
    Constlu
    2023-03-13

    你好,这里可以确认一下AppSecret和shopid 字段是否对应哈,这里的签名校验是运力那边的逻辑,如果确认后仍有问题,我们这边再和运力那边沟通。


    2023-03-13
    有用
    回复 8
    • 侯振永
      侯振永
      2023-03-13
      我这边确认过了,AppSecret和shopid是对应的,也重新绑定过了,签名一直有问题,帮忙排查下吧,多谢,项目进展被卡在签名上一天多了。
      下图是从微信后台上展示的shopid和闪送后台的app secret
      2023-03-13
      回复
    • 侯振永
      侯振永
      2023-03-13
      能快点帮排查吗?顺便补充下,我是微信第三方平台,绑定闪送时在微信后台绑定的,后来解绑了又重新使用API绑定的,怀疑这块有bug。项目卡在这里了,非常着急。
      2023-03-13
      回复
    • Constlu
      Constlu
      2023-03-13回复侯振永
      帖子里面的下单请求的时间点大概是什么时候呢
      2023-03-13
      回复
    • 侯振永
      侯振永
      发表于移动端
      2023-03-13回复Constlu
      查今天19:29的下单请求吧,和帖子里数据一样。
      2023-03-13
      回复
    • Constlu
      Constlu
      2023-03-14回复侯振永
      确认一下密钥获取的方式:
      1.登录闪送商家版pc,从微信开发者平台授权后,闪送商家版pc中能看到这个秘钥


      闪送商家版pc地址:https://seller.ishansong.com/setting/setting
      2023-03-14
      回复
    查看更多(3)
登录 后发表内容