Browse Source

update

add_mode
DengBiao 1 year ago
parent
commit
8d1e833d2f
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      app/admin/hdl/hdl_login.go

+ 4
- 0
app/admin/hdl/hdl_login.go View File

@@ -27,6 +27,10 @@ func Login(c *gin.Context) {
e.OutErr(c, e.ERR_DB_ORM, err) e.OutErr(c, e.ERR_DB_ORM, err)
return return
} }
if admin == nil {
e.OutErr(c, e.ERR_NO_DATA, "账号不存在!")
return
}
if utils.Md5(req.PassWord) != admin.Password { if utils.Md5(req.PassWord) != admin.Password {
e.OutErr(c, e.ERR_INVALID_ARGS, "密码错误") e.OutErr(c, e.ERR_INVALID_ARGS, "密码错误")
return return


Loading…
Cancel
Save