feat:完善信息
This commit is contained in:
@ -54,8 +54,6 @@ func (c *Account) Login(account, password, captchaKey, captchaValue, equipment,
|
||||
return nil, err
|
||||
} else if !isExist {
|
||||
return nil, errors.New("当前不属于任何租户,不可登录")
|
||||
} else if mSysUserTenant.Status != model2.AccountStatusForEnable {
|
||||
return nil, errors.New("当前账号已禁用,不可登录,请联系管理员!")
|
||||
}
|
||||
if mSysUserTenant.TenantID <= 0 {
|
||||
goto Complete
|
||||
|
@ -432,9 +432,7 @@ func (c *Instance) MemberBind(id uint64, status int) error {
|
||||
} else if !isExist {
|
||||
return errors.New("用户信息不存在")
|
||||
}
|
||||
if model2.AccountStatusKind(status) == mSysUserTenant.Status {
|
||||
return errors.New("状态异常,不可操作")
|
||||
}
|
||||
|
||||
if err := model2.Updates(mSysUserTenant.SysUserTenant, map[string]interface{}{
|
||||
"status": status, "updated_at": time.Now(),
|
||||
}); err != nil {
|
||||
|
Reference in New Issue
Block a user