fix: POST 500 error on dingtalk bot (#3655)
This commit is contained in:
parent
60c72d05d1
commit
5ce889942a
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user