按照微信的文档下单参数,是在对不出有啥不对? 只给一个签名错误; 但是验证签名工具能过? 这。。。。
{
"nonce_str": "20240407094053472753085081",
"time_expire": "20240407114053",
"time_start": "20240407094053",
"openid": "o122",
"fee_type": "CNY",
"mch_id": "16121400",
"body": "测试商品",
"notify_url": "http:/z/oder/wechat/check",
"spbill_create_ip": "131.106.01.135",
"device_info": "WEB",
"out_trade_no": "956972290",
"appid": "wx9b149122",
"total_fee": "1",
"trade_type": "JSAPI",
"attach": "测试微信支付",
"sign_type": "MD5"
}
xml 数据:
<xml><appid>wx9b149fc008c000</appid><mch_id>1612147000</mch_id><nonce_str>20240407094053472753085081</nonce_str><sign>490857F6C01D8A6B6D4012093147D3C4</sign><sign_type>MD5</sign_type><device_info>WEB</device_info><body>测试商品</body><out_trade_no>956972290</out_trade_no><total_fee>1</total_fee><fee_type>CNY</fee_type><spbill_create_ip>139.1.12.135</spbill_create_ip><notify_url>http://ctoder/wechat/check</notify_url><trade_type>JSAPI</trade_type><openid>ovjT66srX8nalWta60G2t34Qqke4</openid><attach>测试微信支付</attach><time_start>20240407094053</time_start><time_expire>20240407114053</time_expire></xml>
签名工具只校验签名的方式是否正确,不校验参数的正确性。你需要确认一下你的key是否正确