调接口时一直签名错误。后端未发现问题且加解密使用的同一库,最后通过对比发送的包发现Android端将base64字符串转json时将等号htmlescape成\u003,导致Android端签名跟java端签名不一致。解决方法是Gson在新建时设置不要htmlescape
转载于:https://my.oschina.net/u/2439541/blog/1505557
调接口时一直签名错误。后端未发现问题且加解密使用的同一库,最后通过对比发送的包发现Android端将base64字符串转json时将等号htmlescape成\u003,导致Android端签名跟java端签名不一致。解决方法是Gson在新建时设置不要htmlescape
转载于:https://my.oschina.net/u/2439541/blog/1505557