微信统一下单,大部分订单成功,个别订单下单签名出错,支付成功但是结果签名出错?

寰俊鏀粯 文章 2021-12-01 00:40 17 0 全屏看文

微信统一下单,大部分订单成功,个别订单下单签名出错,支付成功但是结果签名出错?WeChat unified orders, most of the orders were successful, and the signature of some orders was wrong, but the payment was successful but the signature was wrong?

微信统一下单,大部分订单成功,个别订单下单签名出错,支付成功但是结果签名出错?

大部分订单都没有问题

appid和商户号,apikey都对过没有问题

签名生成代码:

随机字符串生成

Utf-8编码,MD5签名

异常:

Most orders have no problem appid and merchant number. Apikey has checked them. No problem signature code is generated: UTF-8 code is generated from random string, MD5 signature exception:

鍥炵瓟锛�

陈刚:

把签名错误的订单日志拉出来,所有传入的参数一个一个检查,第一个是检查参数本身是否合规,第二个是检查参数的钩稽关系是否一致。比如A参数传入了AA,则B参数必须传,不能为空,或者传入了A就不能传B,类似这样的情形。

m:OK感谢老哥回复
北望沣渭:

`sign` 不参与签名,从你代码上看,这块有逻辑漏洞

Memory:

要打印具体错误请求信息,具体分析

-EOF-