Skip to content

Commit 968d03d

Browse files
authored
Merge pull request ehang-io#807 from geek981108/fix
fix: 🐛 fix wrong api response
2 parents c9a4d82 + 4f6b35d commit 968d03d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

web/controllers/client.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ func (s *ClientController) Edit() {
102102
} else {
103103
if c, err := file.GetDb().GetClient(id); err != nil {
104104
s.error()
105+
s.AjaxErr("client ID not found")
106+
return
105107
} else {
106108
if s.getEscapeString("web_username") != "" {
107109
if s.getEscapeString("web_username") == beego.AppConfig.String("web_username") || !file.GetDb().VerifyUserName(s.getEscapeString("web_username"), c.Id) {

0 commit comments

Comments
 (0)