Bladeren bron

更改redis token

lihui001 3 jaren geleden
bovenliggende
commit
15cc8ea505

+ 2 - 2
zoniot-common/zoniot-iot-sync/src/main/java/com/zcxk/iot/sync/auth/AuthIotService.java

@@ -23,7 +23,7 @@ public class AuthIotService {
     /**
      * 存放token
      */
-    private static final String REDIS_TOKEN_KEY = "iot:token:%s";
+    private static final String REDIS_TOKEN_KEY = "sync:token:%s";
 
     @Autowired
     protected AuthConfig authConfig;
@@ -54,7 +54,7 @@ public class AuthIotService {
         if (skipCache) {
             return this.getIotToken();
         }
-        token = getCacheToken();
+        token = this.getCacheToken();
         if (StringUtils.isEmpty(token)) {
             token = this.getIotToken();
         }