From 899aac4cbd401d57bda10f18fd7c876f8751290b Mon Sep 17 00:00:00 2001 From: water_xu Date: Thu, 27 Jun 2024 17:03:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=AC=E9=92=A5=E7=AD=89=E5=B1=9E=E6=80=A7?= =?UTF-8?q?=E6=B3=A8=E5=85=A5=E5=8E=BB=E6=8E=89static=E4=BF=AE=E9=A5=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/zcloud/flow/util/GJSendMessageUtil.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/zcloud/flow/util/GJSendMessageUtil.java b/src/main/java/com/zcloud/flow/util/GJSendMessageUtil.java index ae7eecd8..17f0a739 100644 --- a/src/main/java/com/zcloud/flow/util/GJSendMessageUtil.java +++ b/src/main/java/com/zcloud/flow/util/GJSendMessageUtil.java @@ -23,23 +23,23 @@ public class GJSendMessageUtil { * 工匠学苑 服务地址(测试环境) **/ @Value("${gongJiangXueYuanTestUrl}") - public static String SERVER_URL_TEST; + private String SERVER_URL_TEST; /** * 工匠学苑 服务地址(生产环境) **/ @Value("${gongJiangXueYuanProdUrl}") - public static String SERVER_URL_PROD; + private String SERVER_URL_PROD; /** * 工匠学苑 RSA公钥 **/ @Value("${gongJiangXueYuanSendPublicKey}") - public static String RSA_PUBLIC_KEY; + private String RSA_PUBLIC_KEY; /** * 系统对接密钥 **/ @Value("${gongJiangXueYuanSendPrivateKey}") - public static final String SECRET_KEY = "58e5e358b220335e7b1c6cc3576ceecc28b4a95d96cbbe0"; + private final String SECRET_KEY = "58e5e358b220335e7b1c6cc3576ceecc28b4a95d96cbbe0"; /** * 签名 header @@ -59,7 +59,7 @@ public class GJSendMessageUtil { Map paramDataMap = new HashMap<>(); paramDataMap.put("userList", user); // 发起请求 - String body = createPostFormHttpRequest("/API-BACKEND/openapi/user/v1/syncNotify", paramDataMap); + String body = this.createPostFormHttpRequest("/API-BACKEND/openapi/user/v1/syncNotify", paramDataMap); } } @@ -70,7 +70,7 @@ public class GJSendMessageUtil { * @param paramDataMap 请求参数(明文) * @return String */ - public static String createPostFormHttpRequest(String uri, Map paramDataMap) throws Exception { + public String createPostFormHttpRequest(String uri, Map paramDataMap) throws Exception { // 参数RSA加密 String paramDataJsonStr = JSON.toJSONString(paramDataMap); String paramDataRsaEncrypt = GJRSAUtils.encrypt(paramDataJsonStr, RSA_PUBLIC_KEY);