mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-01-16 05:10:34 +00:00
feat: Support post url params
This commit is contained in:
parent
66cc7f8a1f
commit
0773a4f39c
@ -94,6 +94,8 @@ export abstract class HttpServerBase {
|
|||||||
let payload = req.body;
|
let payload = req.body;
|
||||||
if (method == 'get') {
|
if (method == 'get') {
|
||||||
payload = req.query;
|
payload = req.query;
|
||||||
|
} else if (req.query) {
|
||||||
|
payload = { ...req.query, ...req.body };
|
||||||
}
|
}
|
||||||
log('收到http请求', url, payload);
|
log('收到http请求', url, payload);
|
||||||
try {
|
try {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user