<xml>
<return_code><![CDATA[SUCCESS]]></return_code>
<result_code><![CDATA[FAIL]]></result_code>
<err_code><![CDATA[SIGN_ERROR]]></err_code>
<err_code_des><![CDATA[验证签名失败]]></err_code_des>
<mch_id><![CDATA[1604238295]]></mch_id>
<appid><![CDATA[wxa55002ba2264d064]]></appid>
<receiver><![CDATA[{"type":"PERSONAL_OPENID","account":"oNV8L6CV5WY80fvsRTJCDB6WKMYg","relation_type":"USER"}]]></receiver>
<nonce_str><![CDATA[98982dd312658f9e]]></nonce_str>
<sign><![CDATA[E2630FAE078D4B9F6963F1D2580FE52FD901A04CE7434BBCB8E0918CBC3F9155]]></sign>
</xml>
代码:
你这签名都没计算对
sign=hash_hmac("sha256",stringSignTemp,key).toUpperCase()="6A9AE1657590FD6257D693A078E1C3E4BB6BA4DC30B23E0EE2496E54170DACD6" 到这一步不明白