From 406bad4f2ed71133baea00b135e22c0ab6a6e5f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=9D=BE?= <8605635+zhang3064194730@user.noreply.gitee.com> Date: Mon, 10 Mar 2025 10:55:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E4=BB=98=E5=AE=9D=E5=92=8C=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E5=B7=A5=E5=85=B7=E7=B1=BB=E5=8F=82=E6=95=B0=E4=BB=8E?= =?UTF-8?q?sysParam=E5=8F=96=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/czg/utils/SmsUtil.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cash-common/cash-common-service/src/main/java/com/czg/utils/SmsUtil.java b/cash-common/cash-common-service/src/main/java/com/czg/utils/SmsUtil.java index ce6cac19a..b28b2ff14 100644 --- a/cash-common/cash-common-service/src/main/java/com/czg/utils/SmsUtil.java +++ b/cash-common/cash-common-service/src/main/java/com/czg/utils/SmsUtil.java @@ -45,7 +45,7 @@ public class SmsUtil { private String templateCode; @PostConstruct - public SysParamsService init() { + public void init() { sysParamsService = remoteSysParamsService == null ? applicationContext.getBean(SysParamsService.class): remoteSysParamsService; CzgResult aliSmsKey = sysParamsService.getParamsByCode("ali_sms_key"); CzgResult aliSmsSecret = sysParamsService.getParamsByCode("ali_sms_secret"); @@ -54,7 +54,6 @@ public class SmsUtil { secret = aliSmsSecret.getData().getParamValue(); templateCode = aliSmsTemplateCode.getData().getParamValue(); log.info("短信工具类初始化完毕,key: {}, secret: {}, templateCode: {}", key, secret, templateCode); - return sysParamsService; } public Client createClient() throws Exception {