修复数据可视化最后一天为0

This commit is contained in:
eoao
2025-06-20 00:52:17 +08:00
parent 7ec485907a
commit f9956507fe
2 changed files with 6 additions and 3 deletions

View File

@@ -91,6 +91,7 @@ app.use('*', async (c, next) => {
const result = await jwtUtils.verifyToken(c, jwt);
if (!result) {
console.error(401,1)
throw new BizError('身份认证失效,请重新登录', 401);
}
@@ -98,10 +99,12 @@ app.use('*', async (c, next) => {
const authInfo = await c.env.kv.get(KvConst.AUTH_INFO + userId, { type: 'json' });
if (!authInfo) {
console.error(401,2)
throw new BizError('身份认证失效,请重新登录', 401);
}
if (!authInfo.tokens.includes(token)) {
console.error(401,3)
throw new BizError('身份认证失效,请重新登录', 401);
}