|
@@ -37,6 +37,10 @@ func (this *AdminCommon) Login() {
|
|
|
|
|
|
adminWx, err := services.BindWxUser(this.Session.OpenId, req.Username, req.Password, utils.WxPlatform)
|
|
|
if err != nil {
|
|
|
+ if err.Error() == utils.ErrNoRow() {
|
|
|
+ this.FailWithMessage("登录失败,账号或密码错误", "登录失败,账号或密码错误")
|
|
|
+ return
|
|
|
+ }
|
|
|
this.FailWithMessage("登录失败", "登录失败,Err:"+err.Error())
|
|
|
return
|
|
|
}
|