master
wangning 7 years ago
parent 32a317c344
commit f24084254c

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

Loading…
Cancel
Save