fix: POST 500 error on dingtalk bot (#3655)

This commit is contained in:
a.e. 2025-01-24 14:10:40 +08:00 committed by GitHub
parent 60c72d05d1
commit 5ce889942a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -18,7 +18,10 @@ async function handler(
// send to pro // send to pro
const { token } = req.query; const { token } = req.query;
const result = await POST<any>(`support/outLink/dingtalk/${token}`, req.body, { const result = await POST<any>(`support/outLink/dingtalk/${token}`, req.body, {
headers: req.headers as any headers: {
timestamp: (req.headers.timestamp as string) ?? '',
sign: (req.headers.sign as string) ?? ''
}
}); });
return result; return result;