We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
如下是代码: const params = { apiSecret: think.config('weixin.partner_key'), // API V3 密钥 body: body, // 请求体 body signature: headers['wechatpay-signature'], serial: headers['wechatpay-serial'], nonce: headers['wechatpay-nonce'], timestamp: headers['wechatpay-timestamp'], }; const ret = await pay.verifySign(params); // 报错位置
如下是params参数: { apiSecret: "68d1df7c3ee038838d5fd349*******", body: { id: "34f3011d-efb1-5f7d-9658-ec5660d1be2e", create_time: "2023-08-20T12:52:42+08:00", resource_type: "encrypt-resource", event_type: "TRANSACTION.SUCCESS", summary: "支付成功", resource: { original_type: "transaction", algorithm: "AEAD_AES_256_GCM", ciphertext: "6vc434Am1l1iE6V1KtX+3pA1sc0HOqHQ3mHiCDl+7Vc1YVuRlYTLG9VJDYnYlEHEzoN00LT+NbRkuSuv29JoOLD3bKZVMjeqAGsXF5sS2cgJ+NDDwCM80PUrN/Im5XL9MhQ/Dt+rU54eeYiUKZuAsqoAOAxTVm6SNsdi3T21h+j8z3hK2UKd8XaMYplYg5FC4MC+WWFzkV3KMBAERWHTmgqEQ2w1nCuDpNV+W41oGNeufgFrANq/tC5zVkMOG/bAp4rLRq0tjf7/sI5rktgxgkzTxG3yMDKrJQBIOhMNBdnnfCO/aS/dE21i6Clf2dT/OyMfyVGRQLytFW5NxfSy7SNafkpo452qNX1mKfjYK0YH1rny+i0vkVV18+M5dnUvy+imu84cMOglFqSGL6Ir3hgfeTZIhOZB/iiGSxiqsYD1+XFRmL+IG37fH3Yu2hDCstZZKhX/llblzOXkiT7LdW1Da9CeyHlol5FNlrAHbREvUJqW9M34yMXjVe1xKgHRM5OLoHQDSuL6LM6YK3Oa5HJW2UHE4dabkezEwP6qvxsY50rezifob+zRSY4NhNpRR7Ek", associated_data: "transaction", nonce: "LFp4az9gqZqp", }, }, signature: "gMkazVj9WWgvidlUkZz1d+HsRT8MLd5BKL0NlVwQhXln7kqblXrc7f+d0YDsYOwiggnPVoyyKnLhuUQgIHkz4r5BZEH+iAVwqB6X7pRsSHZ/zw+f+ViOwyrwkBxoY9er+eC8qxpQJkOvZebU2ZQiWDqik/U46igH0734JW75EAAfReRNRJbKqP6DPTzeHJ8sR7vhk/G48x2vqxz1fYfbU0pk+gROMBC+GsZJEfi8RmQeCfKyeiT+2bjvpBThUdmIi0ZSfagewbvaHf4F4n2BYMz4F6QVYJZFiBntiIB5YLkjkmhwrUfvz+tjoWifobUyY0DMI9ZB6iFRvWphPrfThw==", serial: "3CB63C0CE605B7F1C32E85AA38465666C33C8FB0", nonce: "KtbgY7BsQDFNzmFu2aqfdw5uJpvXjeoS", timestamp: "1692507162", }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
如下是代码:
const params = {
apiSecret: think.config('weixin.partner_key'), // API V3 密钥
body: body, // 请求体 body
signature: headers['wechatpay-signature'],
serial: headers['wechatpay-serial'],
nonce: headers['wechatpay-nonce'],
timestamp: headers['wechatpay-timestamp'],
};
const ret = await pay.verifySign(params); // 报错位置
如下是params参数:
{
apiSecret: "68d1df7c3ee038838d5fd349*******",
body: {
id: "34f3011d-efb1-5f7d-9658-ec5660d1be2e",
create_time: "2023-08-20T12:52:42+08:00",
resource_type: "encrypt-resource",
event_type: "TRANSACTION.SUCCESS",
summary: "支付成功",
resource: {
original_type: "transaction",
algorithm: "AEAD_AES_256_GCM",
ciphertext: "6vc434Am1l1iE6V1KtX+3pA1sc0HOqHQ3mHiCDl+7Vc1YVuRlYTLG9VJDYnYlEHEzoN00LT+NbRkuSuv29JoOLD3bKZVMjeqAGsXF5sS2cgJ+NDDwCM80PUrN/Im5XL9MhQ/Dt+rU54eeYiUKZuAsqoAOAxTVm6SNsdi3T21h+j8z3hK2UKd8XaMYplYg5FC4MC+WWFzkV3KMBAERWHTmgqEQ2w1nCuDpNV+W41oGNeufgFrANq/tC5zVkMOG/bAp4rLRq0tjf7/sI5rktgxgkzTxG3yMDKrJQBIOhMNBdnnfCO/aS/dE21i6Clf2dT/OyMfyVGRQLytFW5NxfSy7SNafkpo452qNX1mKfjYK0YH1rny+i0vkVV18+M5dnUvy+imu84cMOglFqSGL6Ir3hgfeTZIhOZB/iiGSxiqsYD1+XFRmL+IG37fH3Yu2hDCstZZKhX/llblzOXkiT7LdW1Da9CeyHlol5FNlrAHbREvUJqW9M34yMXjVe1xKgHRM5OLoHQDSuL6LM6YK3Oa5HJW2UHE4dabkezEwP6qvxsY50rezifob+zRSY4NhNpRR7Ek",
associated_data: "transaction",
nonce: "LFp4az9gqZqp",
},
},
signature: "gMkazVj9WWgvidlUkZz1d+HsRT8MLd5BKL0NlVwQhXln7kqblXrc7f+d0YDsYOwiggnPVoyyKnLhuUQgIHkz4r5BZEH+iAVwqB6X7pRsSHZ/zw+f+ViOwyrwkBxoY9er+eC8qxpQJkOvZebU2ZQiWDqik/U46igH0734JW75EAAfReRNRJbKqP6DPTzeHJ8sR7vhk/G48x2vqxz1fYfbU0pk+gROMBC+GsZJEfi8RmQeCfKyeiT+2bjvpBThUdmIi0ZSfagewbvaHf4F4n2BYMz4F6QVYJZFiBntiIB5YLkjkmhwrUfvz+tjoWifobUyY0DMI9ZB6iFRvWphPrfThw==",
serial: "3CB63C0CE605B7F1C32E85AA38465666C33C8FB0",
nonce: "KtbgY7BsQDFNzmFu2aqfdw5uJpvXjeoS",
timestamp: "1692507162",
}
The text was updated successfully, but these errors were encountered: