收藏
回答

同城配送查运费接口报错?

AppID
wx48dc0828c5da8d6d

## 同城物流查询运费的接口报错

请求可以正常返回,但是无法解密:

原始参数:

{"wx_store_id":"4000000000014244010","user_name":"黄**","user_phone":"151****7609","user_lat":"30.215798","user_lng":"119.964243","user_address":"浙江省杭州市余杭区***幢","cargo_name":"测试样品T0072","cargo":{"cargo_name":"测试样品","cargo_weight":2000,"cargo_price":5000,"cargo_type":3,"cargo_num":3},"_n":"NkvyHjYemrwDuHaQ","_appid":"wx48dc****c5da8d6d","_timestamp":1725110412}

服务端响应:

{"iv":"ny5W5sVP4EWlxW+g","data":"T70RhManvZHPdeFEAeuuBSVvKFu+8UTOmpc72Pi0p6QGLpZWV6sqNehVRl7OhRvjZMP3i2V5TBWxWrjghMWDf+fxlE0bIQIuMsF06L3mdvPIVe84wFlc8RtxQ1PBErDoNRPJ0Lyvpxwe9fwinT2Oc1jDHPx4Tk4cdk9m+tN2OCpT0wJJWcIJkTVeXrz0BviXv2k36zHALvJ\/agG5s5Ll+I+UoGa91dfSUnb7wVGXMlg4Bw==","authtag":"V\/3MeeWaqNY9+ZpHPmZfjQ=="}

javax.crypto.AEADBadTagException: Tag mismatch!

at com.sun.crypto.provider.GaloisCounterMode.decryptFinal(GaloisCounterMode.java:620)

用相同的代码(相同的加解密和签名算法)查询查询门店、开通城市接口没有问题。可以正常解密

请求返回结果是:{"iv":"r8R7iAEVrOH9LwMt","data":"b3Gr+N8uQmKmVFv2IeK07PzD9jbg3lxUnJM25AVi6owfoiTBJDg0XaNa+rZo5p2TcVS1UCXxBUNptVycLEA2HO+eiR4Fa2bfDpNbkLscswmmYcKUkGuhLYH0WX6\/eKv8Q\/lJkxKo58vrrd+rg\/UH3SWqbSclRC5pqvzB+q7y4ilX1\/2gE\/zGztZGnpyTICIOPVLoSa2YKLmudJmCqrl6pKaJjsYb66fp6HMP6wyxgR9h\/22LU\/ItuclpSQizePj0g60npH34vp8HNGbMa3HD98ebhwyOZ+7SPNxYEpG7G8Lp+Z6jfLdsyvTB1LT56wmvlCRnkkAoM2IDwKi\/x\/X7QH6JCM\/zdD\/kxI8k6AI496rjoG6\/PAYuuqSTGYL50YbCVMoSeQm8hx2enJGa6PaqkZ\/QXyug\/rwjT8FUhphC\/t4h5KQzLULjNLe3cSA4woJBbdViMFuXaF16GE8YCDya4wfxLl\/lFuCwDar9PH5ZvgMh\/LwXRP43oXuNaZJmOE4Eo4k2GP7jCXPNJwzgWAHr9CrvqMXY9igwCa\/JDbuOsQ7Z5Y8bshgsSV9GEacI84AXblCj25Mhi9wPammhMAnQfrnCke+DBS3c+2BQplpZwrnRtO7IEjeHswHe7oIR+O+n\/mZrGUrK6tJI4yOMund+sQ==","authtag":"Rohex4JacS9fostrJ4BFag=="}

{errcode=0.0, errmsg=ok, appid=wx48dc0828c5da8d6d, store_list=[{wx_store_id=4000000000014244010, out_store_id=, city_id=330100.0, address_info={province=浙江省, city=杭州市, area=余杭区, street=闲林街道, house=****单元1楼7, lat=30.234303, lng=120.018364, phone=158****20}, order_pattern=1.0, service_trans_prefer=}], _n=754a1a477a970e931284486949e7f293, _appid=wx48dc0828c5da8d6d, _timestamp=1.725110331E9}


回答关注问题邀请回答
收藏

1 个回答

  • 冬天的雨
    冬天的雨
    08-31

    问题已解决

    08-31
    有用
    回复
登录 后发表内容