Commit fc13effa by Sxy

fix: 返回 json

parent 79b26531
......@@ -26,9 +26,9 @@ module.exports = function (app) {
} else {
let rtn = await chnelapi.channelHandle(channel, req.path + "/" + ((req.body && req.body.actionType) || ''), req.body)
if (rtn != null) {
res.end(JSON.stringify(rtn));
res.json(rtn);
} else {
res.end(JSON.stringify({ status: -1, message: "fail" }));
res.json({ status: -1, message: "fail" });
}
}
} catch (e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment