作者 yangfu

1.登录验证码登录修改

... ... @@ -67,6 +67,9 @@ func Login(header *protocol.RequestHeader, request *protocol.LoginRequest) (rsp
return
}
break
default:
err = protocol.NewCustomMessage(1, "登录方式不支持!")
break
}
rsp.AuthCode, _ = utils.GenerateToken(partnerInfo.Id, protocol.AuthCodeExpire*time.Second)
return
... ...
... ... @@ -2,7 +2,7 @@ package protocol
const (
LoginByPassword = "signInPassword"
LoginBySmsCode = " signInCaptcha"
LoginBySmsCode = "signInCaptcha"
)
const AuthCodeExpire = 60 * 15
... ...