master
wangning 7 years ago
parent 32d34e4979
commit 3b9038eab6

@ -630,7 +630,10 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
}
clientMapper.update(updateInfo);
if (!client.getString("contact_email").equals(updateInfo.getString("contact_email"))) {
mailGunService.updateClientOfMailList(updateInfo, client);
JSONObject sameMailClients = getByEmail(client.getString("contact_email"),1,1);
if(sameMailClients.getJSONObject("data").size()<1) {
mailGunService.updateClientOfMailList(updateInfo, client);
}
}
clientInfoCacheSupport.clearClientCache(clientId);
}
@ -668,7 +671,10 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
}
clientMapper.update(info);
if (!client.getString("contact_email").equals(info.getString("contact_email"))) {
mailGunService.updateClientOfMailList(info, client);
JSONObject sameMailClients = getByEmail(client.getString("contact_email"),1,1);
if(sameMailClients.getJSONObject("data").size()<1) {
mailGunService.updateClientOfMailList(info, client);
}
}
clientInfoCacheSupport.clearClientCache(clientId);
}

Loading…
Cancel
Save