|
|
|
@ -633,8 +633,11 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
List<String> exceptClientIds = new ArrayList<>();
|
|
|
|
|
exceptClientIds.add(String.valueOf(clientId));
|
|
|
|
|
JSONObject sameMailClients = getByEmail(client.getString("contact_email"),1,1,exceptClientIds);
|
|
|
|
|
if(sameMailClients.getJSONObject("data").size()<1) {
|
|
|
|
|
if(sameMailClients.getJSONArray("data").size()<1) {
|
|
|
|
|
mailGunService.updateClientOfMailList(updateInfo, client);
|
|
|
|
|
}else {
|
|
|
|
|
client.put("contact_email",updateInfo.getString("contact_email"));
|
|
|
|
|
mailGunService.addClientToMailList(client);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
clientInfoCacheSupport.clearClientCache(clientId);
|
|
|
|
@ -676,8 +679,11 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
List<String> exceptClientIds = new ArrayList<>();
|
|
|
|
|
exceptClientIds.add(String.valueOf(clientId));
|
|
|
|
|
JSONObject sameMailClients = getByEmail(client.getString("contact_email"),1,1,exceptClientIds);
|
|
|
|
|
if(sameMailClients.getJSONObject("data").size()<1) {
|
|
|
|
|
if(sameMailClients.getJSONArray("data").size()<1) {
|
|
|
|
|
mailGunService.updateClientOfMailList(info, client);
|
|
|
|
|
}else {
|
|
|
|
|
client.put("contact_email",info.getString("contact_email"));
|
|
|
|
|
mailGunService.addClientToMailList(client);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
clientInfoCacheSupport.clearClientCache(clientId);
|
|
|
|
@ -2494,7 +2500,7 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
List<String> exceptClientIds = new ArrayList<>();
|
|
|
|
|
exceptClientIds.add(client.getString("client_id"));
|
|
|
|
|
JSONObject sameMailClients = getByEmail(client.getString("contact_email"),1,1,exceptClientIds);
|
|
|
|
|
if(sameMailClients.getJSONObject("data").size()<1) {
|
|
|
|
|
if(sameMailClients.getJSONArray("data").size()<1) {
|
|
|
|
|
mailGunService.removeMailList(client);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|