增加限制条件
This commit is contained in:
@@ -54,6 +54,7 @@ func auth(that *Context, phone, companyName, userName string) error {
|
||||
return errors.New("找不到用户")
|
||||
}
|
||||
company := that.Db.Get("company", "name,id", Map{"id": user.GetCeilInt("company_id")})
|
||||
|
||||
if company == nil {
|
||||
return errors.New("找不到企业")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user