瀏覽代碼

no message

xingzai 8 月之前
父節點
當前提交
fa14e9480d
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      controllers/user.go
  2. 1 1
      models/user.go

+ 1 - 1
controllers/user.go

@@ -55,7 +55,7 @@ func (this *UserCommonController) Login() {
 	password := req.Password
 	password := req.Password
 	loginType := req.LoginType
 	loginType := req.LoginType
 
 
-	if loginType == 1 {
+	if loginType == "2" { // 单独处理密码登录
 		if password == "" {
 		if password == "" {
 			br.Msg = "参数错误"
 			br.Msg = "参数错误"
 			br.ErrMsg = "Password 为空"
 			br.ErrMsg = "Password 为空"

+ 1 - 1
models/user.go

@@ -49,7 +49,7 @@ type LoginReq struct {
 	Token           string `description:"微信扫码登录之后返回的Token"`
 	Token           string `description:"微信扫码登录之后返回的Token"`
 	InviteShareCode string `description:"销售账号邀请码"`
 	InviteShareCode string `description:"销售账号邀请码"`
 	Password        string `comment:"密码"`
 	Password        string `comment:"密码"`
-	LoginType       int    `comment:"登录方式 1 密码登录,其他不用传"`
+	LoginType       string `comment:"登录方式 2 密码登录,其他不用传"`
 }
 }
 
 
 type WxBindMobileReq struct {
 type WxBindMobileReq struct {