fix: 针对角色配置不同的绑定地址数量上限 (#742)

This commit is contained in:
Dream Hunter
2025-10-12 18:21:22 +08:00
committed by GitHub
parent 6109ab9e82
commit 2728e9667b
2 changed files with 5 additions and 0 deletions

View File

@@ -194,6 +194,9 @@ app.use('/user_api/*', async (c, next) => {
console.error(e);
return c.text(msgs.UserTokenExpiredMsg, 401)
}
if (c.req.path.startsWith("/user_api/bind_address")) {
await checkoutUserRolePayload(c);
}
if (c.req.path.startsWith('/user_api/bind_address')
&& c.req.method === 'POST'
) {