- BindWeiXin
This commit is contained in:
@@ -152,7 +152,7 @@ func BindMobile(token, mobileNum, code, nickname string) (err error) {
|
||||
func (a *AutherMiniProgram) BindWeiXin(ctx *jxcontext.Context, code, nickName string) (err error) {
|
||||
globals.SugarLogger.Debugf("AutherMiniProgram BindWeiXin code:%s, nickName:%s", code, nickName)
|
||||
loginInfo := ctx.GetLoginInfo()
|
||||
if loginInfo.LoginType != mobile.LoginType {
|
||||
if loginInfo == nil || loginInfo.LoginType != mobile.LoginType {
|
||||
return fmt.Errorf("调用AutherMiniProgram BindWeiXin时,必须以手机验证方式登录")
|
||||
}
|
||||
user := &legacymodel.WeiXins{
|
||||
|
||||
Reference in New Issue
Block a user