请求<xml>
<act_name>312</act_name>
<client_ip>182.150.31.211</client_ip>
<mch_billno>A642AD1E04F07BF6E2D45AF9C</mch_billno>
<mch_id>1635164438</mch_id>
<nonce_str>F51ED55901DB5A9085C887A2D03E5BDE</nonce_str>
<re_openid>o2Ubs654g8LEMt0ndM</re_openid>
<remark>3121</remark>
<send_name>21312</send_name>
<total_amount>1.00</total_amount>
<total_num>1</total_num>
<wishing>3121</wishing>
<wxappid>wx039ae269912314</wxappid>
<sign>881758BB0CE4BA2B2931054B20478700</sign>
</xml>
返回
<xml>
<return_code>
<![CDATA[SUCCESS]]>
</return_code>
<return_msg>
<![CDATA[签名错误]]>
</return_msg>
<result_code>
<![CDATA[FAIL]]>
</result_code>
<err_code>
<![CDATA[SIGN_ERROR]]>
</err_code>
<err_code_des>
<![CDATA[签名错误]]>
</err_code_des>
<mch_billno>
<![CDATA[A642AD1E04F07BF6E2D45AF9C]]>
</mch_billno>
<mch_id>
<![CDATA[1635164439]]>
</mch_id>
<wxappid>
<![CDATA[wx039ae269912313]]>
</wxappid>
<re_openid>
<![CDATA[o2Ubs654g8LEMt0ndM]]>
</re_openid>
<total_amount>1</total_amount>
</xml>
私钥是对的,刚改过,顺序也是对的,也没有中文空格 咋回事了
1.00 会被解析成float类型,而实际那里需要integer类型
total_amount字段不对,另外你用在线校验校验一下先看看能不能通过https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=20_1