csx 3 år sedan
förälder
incheckning
8a05e313ad
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      controllers/mobile_api_controllers/mobile_api_base_controller.go

+ 1 - 1
controllers/mobile_api_controllers/mobile_api_base_controller.go Visa fil

@@ -120,7 +120,7 @@ func (this *MobileBaseAPIAuthController) Prepare() {
120 120
 			//该机构下该用户有多少个
121 121
 			redisClient := service.RedisClient()
122 122
 			defer redisClient.Close()
123
-			key2 := strconv.FormatInt(adminUserInfo.Org.Id, 64) + "_" + strconv.FormatInt(adminUserInfo.AdminUser.Id, 64) + "_role_ids"
123
+			key2 := strconv.FormatInt(adminUserInfo.Org.Id, 10) + "_" + strconv.FormatInt(adminUserInfo.AdminUser.Id, 10) + "_role_ids"
124 124
 			result, _ := redisClient.Get(key2).Result()
125 125
 			var role models.App_Role
126 126
 			var roles []string