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')
@router('post /workflow/notify')
async flowNotify(req, res) {
let { msg_signature, timestamp, nonce, Encrypt } = req.params
console.log(Encrypt)
let { msg_signature, timestamp, nonce, xml, Encrypt } = req.params
console.log(xml)
const signature = getSignature(TOKEN, timestamp, nonce, Encrypt)
if (msg_signature !== signature) {
throw new ZError(10, 'sign check failed')