소스 검색

更改redis token

lihui001 3 년 전
부모
커밋
15cc8ea505
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      zoniot-common/zoniot-iot-sync/src/main/java/com/zcxk/iot/sync/auth/AuthIotService.java

+ 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();
         }