From 2b5d7c4cf1f9ae1ed465db927b2f9ab958717ad0 Mon Sep 17 00:00:00 2001 From: Sum1Dream <418471657@qq.com> Date: Sun, 23 Jan 2022 20:04:47 +0800 Subject: [PATCH] 1 --- .../src/main/java/com/hai/config/CommonSysConfig.java | 8 ++++++++ .../com/hai/service/impl/OutRechargeOrderServiceImpl.java | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/hai-service/src/main/java/com/hai/config/CommonSysConfig.java b/hai-service/src/main/java/com/hai/config/CommonSysConfig.java index cfb0a9e4..00a0442b 100644 --- a/hai-service/src/main/java/com/hai/config/CommonSysConfig.java +++ b/hai-service/src/main/java/com/hai/config/CommonSysConfig.java @@ -398,4 +398,12 @@ public class CommonSysConfig { public void setCzUrl(String czUrl) { CzUrl = czUrl; } + + public String getCzAppSecret() { + return CzAppSecret; + } + + public void setCzAppSecret(String czAppSecret) { + CzAppSecret = czAppSecret; + } } diff --git a/hai-service/src/main/java/com/hai/service/impl/OutRechargeOrderServiceImpl.java b/hai-service/src/main/java/com/hai/service/impl/OutRechargeOrderServiceImpl.java index 33c1af8f..eabe446f 100644 --- a/hai-service/src/main/java/com/hai/service/impl/OutRechargeOrderServiceImpl.java +++ b/hai-service/src/main/java/com/hai/service/impl/OutRechargeOrderServiceImpl.java @@ -374,7 +374,7 @@ public class OutRechargeOrderServiceImpl implements OutRechargeOrderService { map.put("is_fast" , "1"); map.put("notify_url" , CommonSysConst.getSysConfig().getCzNotifyUrl()); - String signStr = WxUtils.generateSignatureAppSecret(map, CommonSysConst.getSysConfig().getTelApiSecret() , WXPayConstants.SignType.MD5); + String signStr = WxUtils.generateSignatureAppSecret(map, CommonSysConst.getSysConfig().getCzAppSecret() , WXPayConstants.SignType.MD5); map.put("sign" , signStr);