🎨 新增封禁用户返回,新增批量上传机器人功能

This commit is contained in:
2025-09-17 18:32:18 +08:00
parent bda654ec5e
commit 81e1661380
6 changed files with 75 additions and 0 deletions

View File

@@ -131,6 +131,11 @@ func (*AppUserApi) WechatLogin(ctx *gin.Context) {
r.FailWithMessage("登录失败:"+err.Error(), ctx)
return
}
if user.Status == 0 {
r.Banned("用户已被禁用", ctx)
return
}
// 生成token
token, claims, err := user_jwt.LoginToken(user)
if err != nil {
@@ -208,6 +213,11 @@ func (*AppUserApi) PwdLogin(ctx *gin.Context) {
return
}
if user.Status == 0 {
r.Banned("用户已被禁用", ctx)
return
}
// 生成token
token, claims, err := user_jwt.LoginToken(user)
if err != nil {