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

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