|
|
|
@ -2,6 +2,8 @@ package au.com.royalpay.payment.manage.system.web;
|
|
|
|
|
|
|
|
|
|
import au.com.royalpay.payment.manage.system.core.MailGunService;
|
|
|
|
|
|
|
|
|
|
import org.slf4j.Logger;
|
|
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
|
@ -13,6 +15,7 @@ import javax.annotation.Resource;
|
|
|
|
|
@RequestMapping(value = "/mailgun")
|
|
|
|
|
public class MailCallBackController {
|
|
|
|
|
|
|
|
|
|
private Logger logger = LoggerFactory.getLogger(getClass());
|
|
|
|
|
@Resource
|
|
|
|
|
private MailGunService mailService;
|
|
|
|
|
|
|
|
|
@ -24,6 +27,7 @@ public class MailCallBackController {
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/callback/dropped", method = RequestMethod.POST)
|
|
|
|
|
public void contractList(@RequestBody String content) throws Exception {
|
|
|
|
|
logger.info("kira"+content);
|
|
|
|
|
mailService.dealDroppedNotify(content);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|