csx 4 years ago
parent
commit
934b72824b
1 changed files with 11 additions and 11 deletions
  1. 11 11
      controllers/login/login_controller.go

+ 11 - 11
controllers/login/login_controller.go View File

74
 		ip := utils.GetIP(this.Ctx.Request)
74
 		ip := utils.GetIP(this.Ctx.Request)
75
 		sessionID := this.Ctx.GetCookie("s")
75
 		sessionID := this.Ctx.GetCookie("s")
76
 		utils.TraceLog("cookie session id: %v %v", ip, sessionID)
76
 		utils.TraceLog("cookie session id: %v %v", ip, sessionID)
77
-		adminUserInfo, err, errCode := admin_service.VerifyToken(token, ip, sessionID)
77
+		adminUserInfo, err, _ := admin_service.VerifyToken(token, ip, sessionID)
78
 		if err != nil {
78
 		if err != nil {
79
-			if errCode == 903 { // 未创建应用
80
-				this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeNeverCreateTypeApp)
81
-
82
-			} else if errCode == 904 { // 联系超管来开通
83
-				this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeContactSuperAdminCreateTypeApp)
84
-
85
-			} else {
86
-				utils.ErrorLog("令牌验证失败:%v", err)
87
-				this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeInvalidToken)
88
-			}
79
+			//if errCode == 903 { // 未创建应用
80
+			//	this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeNeverCreateTypeApp)
81
+			//
82
+			//} else if errCode == 904 { // 联系超管来开通
83
+			//	this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeContactSuperAdminCreateTypeApp)
84
+			//
85
+			//} else {
86
+			utils.ErrorLog("令牌验证失败:%v", err)
87
+			this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeInvalidToken)
88
+			//}
89
 			return
89
 			return
90
 
90
 
91
 		} else {
91
 		} else {