Upd:风控业务,修改内部调用人邮箱使用

master
duLingLing 5 years ago
parent 94dbe6f9de
commit a664f2b79a

@ -10,7 +10,7 @@
<modelVersion>4.0.0</modelVersion>
<artifactId>manage</artifactId>
<version>1.1.25</version>
<version>1.1.26</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

@ -722,3 +722,5 @@ update pmt_custom_reports set report_serial=uuid();
alter pmt_custom_reports add PRIMARY key (report_serial);
alter table sys_org add COLUMN `state` varchar(20) DEFAULT NULL COMMENT '州 (使用标准码 NSW,QLD,WA,VIC,ACT,NT,TAS,SA)';
INSERT INTO `royalpay`.`sys_configs`(`config_key`, `config_value`, `config_desc`) VALUES ('rick_interior_send_email', 'dll19920503@qq.com', '内部调用测试发送邮箱');

@ -32,6 +32,7 @@ import au.com.royalpay.payment.tools.connections.mpsupport.exceptions.WechatExce
import au.com.royalpay.payment.tools.device.message.AppMessage;
import au.com.royalpay.payment.tools.device.message.AppMsgSender;
import au.com.royalpay.payment.tools.env.PlatformEnvironment;
import au.com.royalpay.payment.tools.env.SysConfigManager;
import au.com.royalpay.payment.tools.exceptions.BadRequestException;
import au.com.royalpay.payment.tools.exceptions.event.WechatExceptionEvent;
import au.com.royalpay.payment.tools.locale.LocaleSupport;
@ -134,6 +135,9 @@ public class RiskBusinessServiceImpl implements RiskBusinessService, ManagerTodo
private MpWechatApiProvider mpWechatApiProvider;
private ApplicationEventPublisher publisher;
@Resource
private SysConfigManager sysConfigManager;
@Resource
public void setAppMsgSenders(AppMsgSender[] senders) {
@ -818,7 +822,7 @@ public class RiskBusinessServiceImpl implements RiskBusinessService, ManagerTodo
* bdemailsBccs
*
*
* "18852852189@163.com"
* sys_configsKEY"rick_interior_send_email"
*
* Arrays.asList("18852852189@139.com", "1370256381@qq.com")debug
*/
@ -829,7 +833,8 @@ public class RiskBusinessServiceImpl implements RiskBusinessService, ManagerTodo
ctx.setVariable("emailsCcs", null);
if (PlatformEnvironment.getEnv().isDebug()) {
emailsBccs = new ArrayList<>(Arrays.asList(
"18852852189@139.com", "1370256381@qq.com"
sysConfigManager.getSysConfig().getString("rick_interior_send_email"),
sysConfigManager.getSysConfig().getString("rick_interior_send_email")
));
}
emailsBccs.addAll(bdEmails);
@ -839,7 +844,8 @@ public class RiskBusinessServiceImpl implements RiskBusinessService, ManagerTodo
if (orderType == RiskOrderTypeEnum.ROYALPAY_ORDER.getOrderType().intValue()) {
if (PlatformEnvironment.getEnv().isDebug()) {
emailsBccs = new ArrayList<>(Arrays.asList(
"18852852189@139.com", "1370256381@qq.com"
sysConfigManager.getSysConfig().getString("rick_interior_send_email"),
sysConfigManager.getSysConfig().getString("rick_interior_send_email")
));
}
emailsBccs.addAll(bdEmails);

Loading…
Cancel
Save