master
wangning 7 years ago
parent 72454b3a49
commit b90dc9d489

@ -2481,6 +2481,7 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
JSONObject client = clientDetail(manager, clientMoniker); JSONObject client = clientDetail(manager, clientMoniker);
Assert.notEmpty(client); Assert.notEmpty(client);
clientModifySupport.processClientModify(new DisableModify(manager, clientMoniker, false)); clientModifySupport.processClientModify(new DisableModify(manager, clientMoniker, false));
mailGunService.removeMailList(client);
} }
@Override @Override

@ -24,4 +24,6 @@ public interface MailGunService {
JSONObject sendEmail(String notice_id, String title, Set<String> mailTo, String content) throws URISyntaxException, IOException ; JSONObject sendEmail(String notice_id, String title, Set<String> mailTo, String content) throws URISyntaxException, IOException ;
void removeMailList(JSONObject client);
} }

@ -161,7 +161,10 @@ public class MailGunServiceImpl implements MailGunService {
return mailGunClient.sendMail(sendMail); return mailGunClient.sendMail(sendMail);
} }
@Override
public void removeMailList(JSONObject client) {
mailGunClient.removeClientOfMailList(client.getString("contact_email"),mailListDefault);
}
public Map<String, String> getQueryMap(String query) { public Map<String, String> getQueryMap(String query) {
String[] params = query.split("&"); String[] params = query.split("&");

Loading…
Cancel
Save