feat:完善信息

This commit is contained in:
henry
2021-10-08 09:39:40 +08:00
parent bd788b8b7e
commit fe75ad1aec
10 changed files with 63 additions and 73 deletions

View File

@ -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

View File

@ -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 {