master
wangning 7 years ago
parent 87e1d6eb18
commit 8bbba61d9d

@ -802,9 +802,9 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
try {
String emailId = mailService.sendEmail("Your RoyalPay Cross-border Payment has been set up", mailTo,
emails.isEmpty() ? "" : StringUtils.join(emails, ","), content);
clientModifySupport.processClientConfigModify(new EmailModify(account, client.getString("client_moniker"), 3, emailId));
clientModifySupport.processClientModify(new EmailModify(account, client.getString("client_moniker"), 3, emailId));
} catch (Exception e) {
clientModifySupport.processClientConfigModify(new EmailModify(account, client.getString("client_moniker"), 0, null));
clientModifySupport.processClientModify(new EmailModify(account, client.getString("client_moniker"), 0, null));
throw new EmailException("Email Sending Failed", e);
}
}

@ -39,11 +39,11 @@ public abstract class ClientConfigModify {
public int doModify(MerchantInfoProvider merchantInfoProvider, ClientConfigMapper clientConfigMapper, ClientMapper clientMapper, MongoTemplate mongoTemplate) {
JSONObject client = merchantInfoProvider.getClientInfoByMoniker(clientMoniker);
JSONObject modifyResult = getModifyResult();
// try {
// saveModifyHistory(client, modifyResult, mongoTemplate);
// }catch (Exception e){
//
// }
try {
saveModifyHistory(client, modifyResult, mongoTemplate);
}catch (Exception e){
}
int clientId = client.getIntValue("client_id");
modifyResult.put("client_id", clientId);
clientConfigMapper.update(modifyResult);

@ -38,11 +38,11 @@ public abstract class ClientModify {
public int doModify(MerchantInfoProvider merchantInfoProvider, ClientMapper clientMapper, MongoTemplate mongoTemplate) {
JSONObject client = merchantInfoProvider.getClientInfoByMoniker(clientMoniker);
JSONObject modifyResult = getModifyResult();
// try {
// saveModifyHistory(client, modifyResult, mongoTemplate);
// }catch (Exception e){
//
// }
try {
saveModifyHistory(client, modifyResult, mongoTemplate);
}catch (Exception e){
}
int clientId = client.getIntValue("client_id");
modifyResult.put("client_id", clientId);
clientMapper.update(modifyResult);

@ -1,13 +1,13 @@
package au.com.royalpay.payment.manage.merchants.entity.impls;
import au.com.royalpay.payment.manage.merchants.entity.ClientConfigModify;
import au.com.royalpay.payment.manage.merchants.entity.ClientModify;
import com.alibaba.fastjson.JSONObject;
/**
* Create by yixian at 2018-04-12 16:43
*/
public class EmailModify extends ClientConfigModify {
public class EmailModify extends ClientModify {
private int approve_email_send;
private String approve_email_id;
@ -25,8 +25,8 @@ public class EmailModify extends ClientConfigModify {
@Override
protected JSONObject getModifyResult() {
JSONObject modify = new JSONObject();
modify.put("approve_email_send", 4);
modify.put("approve_email_id", null);
modify.put("approve_email_send", approve_email_send);
modify.put("approve_email_id", approve_email_id);
return modify;
}
}

@ -22,7 +22,7 @@ spring.redis.host=127.0.0.1
spring.redis.port=6379
spring.redis.database=1
spring.data.mongodb.host=119.28.215.173
spring.data.mongodb.host=10.30.0.8
spring.data.mongodb.port=27017
spring.data.mongodb.database=admin
spring.data.mongodb.username=mongouser

Loading…
Cancel
Save