增加限制条件

This commit is contained in:
hoteas
2022-05-07 11:02:12 +08:00
parent 9ba182d65c
commit 918b88332b
5 changed files with 22 additions and 2 deletions
+1
View File
@@ -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("找不到企业")
}