收藏
回答

V3图片上传报图片sha256值有误的问题

我进行的操作感觉没有,也通过https://www.it399.com/FileHashz这个网站验证过上传图片的sha256是正确的,但总是报这种错误,麻烦解答一下,下面的商户号和序列号我都删了的

<签名原串:POST

/v3/merchant/media/upload

商户号

EJWO5g1CNOYRmy8G0XI4tbLaZzdBfOT3

{"filename":"商家app.png","sha256":"d08a05da39857197e39f112f0528e78a0f169bf89a706e7d5603b450407258e6"}

签名sign值:tQebIvuC4obSWSp/tgNysbK0sQLHMETVt2hKOBGPi7FMkaR7QHlrF5G8OMtZ4vMSmQfQyrwISwkc77/jJzLBNnWIMZXbpImIOPD4vh3+bya8A/GqZysfR7PiYJk25dkwwbhJPshPnUdHZ5ikHUwkBqHKiCFz1I3FDeUToVg3SJo0UTZ/ax9/vYZF31odsIEp5vgaMSDhjzUHdLIhpEfXVLGN8Svgge7DI4L6z6OaBg8aGyzRlqTpm0I/JIMZQFYmsmMAXCjv/GcuuSgqy9EKapIKW0mpmTpfi5EqsgR9EkCD/nj/ZW2jlgUK01mZZuDkJT3bsWEdVh05myJFT8WAzQ==>

authorization值:WECHATPAY2-SHA256-RSA2048 mchid="",nonce_str="EJWO5g1CNOYRmy8G0XI4tbLaZzdBfOT3",signature="tQebIvuC4obSWSp/tgNysbK0sQLHMETVt2hKOBGPi7FMkaR7QHlrF5G8OMtZ4vMSmQfQyrwISwkc77/jJzLBNnWIMZXbpImIOPD4vh3+bya8A/GqZysfR7PiYJk25dkwwbhJPshPnUdHZ5ikHUwkBqHKiCFz1I3FDeUToVg3SJo0UTZ/ax9/vYZF31odsIEp5vgaMSDhjzUHdLIhpEfXVLGN8Svgge7DI4L6z6OaBg8aGyzRlqTpm0I/JIMZQFYmsmMAXCjv/GcuuSgqy9EKapIKW0mpmTpfi5EqsgR9EkCD/nj/ZW2jlgUK01mZZuDkJT3bsWEdVh05myJFT8WAzQ==",timestamp="1586329864",serial_no="">

接口返回头信息:

2020-04-08 15:11:05,523 INFO [com.ygxx.util.WeixinV3Util] - <Keep-Alive:[timeout=8]>

2020-04-08 15:11:05,524 INFO [com.ygxx.util.WeixinV3Util] - <null:[HTTP/1.1 400 Bad Request]>

2020-04-08 15:11:05,524 INFO [com.ygxx.util.WeixinV3Util] - <Wechatpay-Timestamp:[1586329923]>

2020-04-08 15:11:05,524 INFO [com.ygxx.util.WeixinV3Util] - <Server:[nginx]>

2020-04-08 15:11:05,525 INFO [com.ygxx.util.WeixinV3Util] - <X-Content-Type-Options:[nosniff]>

2020-04-08 15:11:05,525 INFO [com.ygxx.util.WeixinV3Util] - <Connection:[keep-alive]>

2020-04-08 15:11:05,525 INFO [com.ygxx.util.WeixinV3Util] - <Date:[Wed, 08 Apr 2020 07:12:03 GMT]>

2020-04-08 15:11:05,525 INFO [com.ygxx.util.WeixinV3Util] - <Wechatpay-Serial:[74C3BE2980C0E8D7F179D0F1B5F1BA8D593BC74A]>

2020-04-08 15:11:05,526 INFO [com.ygxx.util.WeixinV3Util] - <Wechatpay-Nonce:[677a349da4f241ae74fef7a50b813437]>

2020-04-08 15:11:05,526 INFO [com.ygxx.util.WeixinV3Util] - <Wechatpay-Signature:[FuK9DjmdZqsnyRQGOJ/McbH0b830cYyf37Fg/BGnrq8dBiCDQHkM6O5MMRdukp7yjJ+RiEwNOKG2We2d53OLRpfN0JIt1HkPpNDhz4tkPI5Nr/+qtDBji6Q9AcuTQnSSN8pX+FHAzEM+p8AuFjQZ7YClUMndE4c1xPaVHX79haQE03yhycHAgAgAjmMu1KSWlIullowPS0pdqN+xa0SNaT/gJUANzFX4cwhbUreX0j+auznMRCKd9ovCKQnqYa/yLVZPasaltWjjEX1Hukjnc7q503fhsMIvz++R2UDwn0nmQaERAIs0hqgmkgLJ/RC+yYt8Zwk7Azz9miDoAFwQYg==]>

2020-04-08 15:11:05,526 INFO [com.ygxx.util.WeixinV3Util] - <Cache-Control:[no-cache, must-revalidate]>

2020-04-08 15:11:05,527 INFO [com.ygxx.util.WeixinV3Util] - <Content-Length:[83]>

2020-04-08 15:11:05,527 INFO [com.ygxx.util.WeixinV3Util] - <Content-Language:[zh-CN]>

2020-04-08 15:11:05,527 INFO [com.ygxx.util.WeixinV3Util] - <Request-ID:[s04fb7]>

2020-04-08 15:11:05,528 INFO [com.ygxx.util.WeixinV3Util] - <Content-Type:[application/json; charset=utf-8]>

Exception in thread "main" java.lang.Exception: 图片sha256值有误,请检查后重新提交

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

1 个回答

登录 后发表内容
问题标签