diff --git a/src/controllers/workflow.controller.ts b/src/controllers/workflow.controller.ts index 27265cf..58a4f86 100644 --- a/src/controllers/workflow.controller.ts +++ b/src/controllers/workflow.controller.ts @@ -28,13 +28,13 @@ class WorkFlowController extends BaseController { @role('anon') @router('post /workflow/notify') async flowNotify(req, res) { - let { msg_signature, timestamp, nonce, xml, Encrypt } = req.params + let { msg_signature, timestamp, nonce, xml } = req.params console.log(xml) - const signature = getSignature(TOKEN, timestamp, nonce, Encrypt) + const signature = getSignature(TOKEN, timestamp, nonce, xml.Encrypt) if (msg_signature !== signature) { throw new ZError(10, 'sign check failed') } - const { message, id } = decrypt(AES_KEY, Encrypt) + const { message, id } = decrypt(AES_KEY, xml.Encrypt) console.log(id) console.log(message) res.send('success')