xiaoyong931011
2023-08-17 7213523d102aa9eab2e3f776556ece713ec76c09
后台修改
1 files modified
4 ■■■■ changed files
src/main/java/cc/mrbird/febs/common/interceptor/DappInterceptor.java 4 ●●●● patch | view | raw | blame | history
src/main/java/cc/mrbird/febs/common/interceptor/DappInterceptor.java
@@ -84,8 +84,8 @@
        response.setContentType("application/json; charset=utf-8");
        FebsResponse code = new FebsResponse().code(HttpStatus.UNAUTHORIZED);
        String encryptBase64 = SecureUtil.rsa(AppContants.RESP_PRIVATE_KEY, AppContants.RESP_PUBLIC_KEY).encryptBase64(JSONObject.toJSONString(code).getBytes(), KeyType.PublicKey);
        response.getWriter().write(new ObjectMapper().writeValueAsString(encryptBase64));
//        String encryptBase64 = SecureUtil.rsa(AppContants.RESP_PRIVATE_KEY, AppContants.RESP_PUBLIC_KEY).encryptBase64(JSONObject.toJSONString(code).getBytes(), KeyType.PublicKey);
        response.getWriter().write(new ObjectMapper().writeValueAsString(code));
    }
    public static void main(String[] args) {