From 6921deb17d41d99121ea484546963086aa328167 Mon Sep 17 00:00:00 2001 From: 0027002591 Date: Wed, 12 Nov 2025 17:00:07 +0800 Subject: [PATCH] =?UTF-8?q?php=E5=89=A5=E7=A6=BB=E5=86=85=E5=AE=B9?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../module/assistance/service/impl/EmailServiceImpl.java | 9 ++++----- .../src/main/resources/application-prod.yml | 2 +- .../src/main/resources/application-test.yml | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/servers/boe-server-all/src/main/java/com/xboe/module/assistance/service/impl/EmailServiceImpl.java b/servers/boe-server-all/src/main/java/com/xboe/module/assistance/service/impl/EmailServiceImpl.java index 424b942a..c9616e74 100644 --- a/servers/boe-server-all/src/main/java/com/xboe/module/assistance/service/impl/EmailServiceImpl.java +++ b/servers/boe-server-all/src/main/java/com/xboe/module/assistance/service/impl/EmailServiceImpl.java @@ -56,12 +56,11 @@ public class EmailServiceImpl implements IEmailService { String cfgWord=SysConstant.getConfigValue("xboe.email.security"); Map data=new HashMap(); - data.put("to",to); - data.put("subject",subject); + // php剥离,不再使用老系统发邮件,使用基础服务的发邮件功能 + data.put("email",to); + data.put("title",subject); data.put("content", htmlMsg); - data.put("fromName", cfgFrom); - data.put("cc", ""); - data.put("type", 0); + data.put("userName", cfgUser); ObjectMapper mapper=new ObjectMapper(); String json=mapper.writeValueAsString(data); diff --git a/servers/boe-server-all/src/main/resources/application-prod.yml b/servers/boe-server-all/src/main/resources/application-prod.yml index 8d6a8177..148db889 100644 --- a/servers/boe-server-all/src/main/resources/application-prod.yml +++ b/servers/boe-server-all/src/main/resources/application-prod.yml @@ -66,7 +66,7 @@ xboe: user: password: email: - url: https://u.boe.com/api/b1/email/send + url: http://u.boe.com/infrasApi/sendMsg/sendMail from: boeu_learning@boe.com.cn user: security: diff --git a/servers/boe-server-all/src/main/resources/application-test.yml b/servers/boe-server-all/src/main/resources/application-test.yml index 7872413a..468049d4 100644 --- a/servers/boe-server-all/src/main/resources/application-test.yml +++ b/servers/boe-server-all/src/main/resources/application-test.yml @@ -104,7 +104,7 @@ xboe: user: elastic password: Boe@es123 email: - url: http://10.251.186.27/api/b1/email/send + url: http://127.0.0.1/infrasApi/sendMsg/sendMail from: boeu_learning@boe.com.cn user: security: