增加token校验

This commit is contained in:
2025-12-01 16:08:09 +08:00
parent 9415af337c
commit 0c80c0dc48
3 changed files with 126 additions and 8 deletions

View File

@@ -626,7 +626,12 @@ app.post("/user", async (req, res) => {
if (!userId&&userId!="NaN") {
return res.status(400).send("缺少 user_id");
res.json({
code: 300,
error: "http://ri.satabot.com/#/login?goRemote=1",
msg:"未找到该用户"
});
return;
}
// 查询 user_name