增加友好提示

This commit is contained in:
pixel
2020-11-11 09:59:18 +08:00
parent 8392398b1c
commit 68677e1b5b
2 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ func Login(c *gin.Context) {
U := &model.SysUser{Username: L.Username, Password: L.Password}
if err, user := service.Login(U); err != nil {
global.GVA_LOG.Error("登陆失败! 用户名不存在或者密码错误", zap.Any("err", err))
response.FailWithMessage("登陆失败!", c)
response.FailWithMessage("用户名不存在或者密码错误", c)
} else {
tokenNext(c, *user)
}