update 针对配置表配置的商户不发送开通邮件

master
Todking 4 years ago
parent 3443b288da
commit 81ad02acac

@ -1371,6 +1371,15 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
public void sendInitEmail(final JSONObject client, String username, String pwd, boolean isUpayAuditPass) { public void sendInitEmail(final JSONObject client, String username, String pwd, boolean isUpayAuditPass) {
logger.debug("sending email after comply"); logger.debug("sending email after comply");
// 配置了部分组织不发送邮件
JSONObject sysConfig = sysConfigManager.getSysConfig();
String[] orgs = sysConfig.getString("no_send_email_org").split(",");
for (String org : orgs) {
if (client.getString("org_id").equals(org)) {
logger.info("Merchant of organization does not send email.(org_id:" + org + ")");
return;
}
}
List<JSONObject> bds = clientBDMapper.listClientBDInfoAvailable(client.getIntValue("client_id"), new Date()); List<JSONObject> bds = clientBDMapper.listClientBDInfoAvailable(client.getIntValue("client_id"), new Date());
Context ctx = new Context(); Context ctx = new Context();
ctx.setVariable("bds", bds); ctx.setVariable("bds", bds);

@ -7,11 +7,11 @@ spring:
schema-name: royalpay_payment schema-name: royalpay_payment
username: rpaydev username: rpaydev
slave: slave:
host: 192.168.0.84:3306 host: 192.168.0.92:3306
jdbc-url: jdbc:mysql://${spring.datasource.slave.host}/${spring.datasource.slave.schema-name}?useUnicode=true&characterEncoding=utf8&useSSL=false jdbc-url: jdbc:mysql://${spring.datasource.slave.host}/${spring.datasource.slave.schema-name}?useUnicode=true&characterEncoding=utf8&useSSL=false
password: rpayplus123 password: SuTUUxyvzS0cLETi6Rzm
schema-name: royalpay schema-name: royalpay_payment
username: root username: rpaydev
type: com.zaxxer.hikari.HikariDataSource type: com.zaxxer.hikari.HikariDataSource
redis: redis:
database: 1 database: 1
@ -23,10 +23,10 @@ spring:
app: app:
run-tasks: false run-tasks: false
host: host:
main: http://192.168.0.38:5000/ main: http://192.168.0.24:9008/
regions: regions:
au: http://192.168.0.38:5000/ au: http://192.168.0.24:9008/
cn: http://192.168.0.38:5000/ cn: http://192.168.0.24:9008/
mail: mail:
appid: 1 appid: 1
host: https://dev.mailsupport.hcqtech.com host: https://dev.mailsupport.hcqtech.com

Loading…
Cancel
Save