change sth

This commit is contained in:
zhl 2023-04-05 18:01:32 +08:00
parent 4b1ad8511d
commit c8926d99be

View File

@ -28,8 +28,8 @@ class WorkFlowController extends BaseController {
@role('anon') @role('anon')
@router('post /workflow/notify') @router('post /workflow/notify')
async flowNotify(req, res) { async flowNotify(req, res) {
let { msg_signature, timestamp, nonce, Encrypt } = req.params let { msg_signature, timestamp, nonce, xml, Encrypt } = req.params
console.log(Encrypt) console.log(xml)
const signature = getSignature(TOKEN, timestamp, nonce, Encrypt) const signature = getSignature(TOKEN, timestamp, nonce, Encrypt)
if (msg_signature !== signature) { if (msg_signature !== signature) {
throw new ZError(10, 'sign check failed') throw new ZError(10, 'sign check failed')