|
|
|
@ -8,6 +8,7 @@ import au.com.royalpay.payment.tools.mail.SendMail;
|
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
|
|
|
|
|
|
import org.apache.commons.lang3.ArrayUtils;
|
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
import org.jsoup.Jsoup;
|
|
|
|
|
import org.jsoup.nodes.Document;
|
|
|
|
@ -66,15 +67,16 @@ public class MailGunServiceImpl implements MailGunService {
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void dealDroppedNotify(Map<String, String[]> parameter) throws Exception {
|
|
|
|
|
|
|
|
|
|
parameter.get("my-custom-data-keys");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String dd = URLDecoder.decode(content, "UTF-8");
|
|
|
|
|
Map<String, String> mailgunNotify = getQueryMap(dd);
|
|
|
|
|
String myData = mailgunNotify.get("my-custom-data");
|
|
|
|
|
String recipient = mailgunNotify.get("recipient");
|
|
|
|
|
String [] myDataArr = parameter.get("my-custom-data-keys");
|
|
|
|
|
if(ArrayUtils.isEmpty(myDataArr)){
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
String [] recipientArr = parameter.get("recipient");
|
|
|
|
|
if(ArrayUtils.isEmpty(recipientArr)){
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
String myData = myDataArr[0];
|
|
|
|
|
String recipient = recipientArr[0];
|
|
|
|
|
if (StringUtils.isNotEmpty(myData) && StringUtils.isNotEmpty(recipient)) {
|
|
|
|
|
JSONObject tmpJSONObject = JSONObject.parseObject(myData);
|
|
|
|
|
String[] mailAddresses = recipient.split(",");
|
|
|
|
|