zainali5120
2020-11-23 72086633f99f775e42c70f7aabce836e5b8b0597
配置
3 files modified
6 ■■■■ changed files
src/main/java/com/xcong/excoin/common/system/controller/LoginController.java 2 ●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/configurations/security/TokenFilter.java 2 ●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/modules/blackchain/service/UsdtEthService.java 2 ●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/common/system/controller/LoginController.java
@@ -91,7 +91,7 @@
                redisUtils.del(AppContants.PC_LOGIN_PREFIX + redisUtils.getString(redisMember));
            }
        }
        redisUtils.set(redisToken, JSONObject.toJSONString(loginUserBean.getMemberEntity()), applicationProperties.getRedisExpire());
        redisUtils.set(redisToken, JSONObject.toJSONString(loginUserBean.getMemberEntity()));
        redisUtils.set(redisMember, token);
        Map<String, Object> authInfo = new HashMap<>();
        // 开启debug模式,则将加密后的token返回
src/main/java/com/xcong/excoin/configurations/security/TokenFilter.java
@@ -65,7 +65,7 @@
                    MemberEntity loginUser = JSONObject.parseObject(loginStr, MemberEntity.class);
                    Authentication authentication = new UsernamePasswordAuthenticationToken(loginUser, token, new ArrayList<>());
                    SecurityContextHolder.getContext().setAuthentication(authentication);
                    redisUtils.expire(redisKey, 36000);
                   // redisUtils.expire(redisKey, 36000);
                } else {
                    log.info("token无法查询:{}", token);
                    SecurityContextHolder.clearContext();
src/main/java/com/xcong/excoin/modules/blackchain/service/UsdtEthService.java
@@ -39,7 +39,7 @@
    public static String ETH_FEE = "0.0042";
    public static final String TOTAL_ADDRESS = "0x8115A796327311e627050d0129C17176A79Dc050";
    public static final String POOL_ADDRESS = "0xD226591420fbcCE41936Eaab61239Ea0A8954de5";
    public static final String POOL_ADDRESS = "0xE92af98CdaAf8dC6363a20ab42bA34E37385D61f";
    public static final String TOTAL_PRIVATE = "bba4029d67e26ec6b537db986c8500b5bc1c21b53755dd7a3d41d9a4ce84c05e";
    @Resource