Commit 0a2d38f2 by zhangchen

1.添加日志

parent be99983b
...@@ -5,6 +5,8 @@ package com.ctrip.fun.golf.service.payment; ...@@ -5,6 +5,8 @@ package com.ctrip.fun.golf.service.payment;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.CollectionUtils; import org.springframework.util.CollectionUtils;
...@@ -43,9 +45,11 @@ public class CommuneNotifyService extends AbstractNotifyService { ...@@ -43,9 +45,11 @@ public class CommuneNotifyService extends AbstractNotifyService {
@Autowired @Autowired
private UserExtDao userExtDao; private UserExtDao userExtDao;
private static Logger logger = LoggerFactory.getLogger(CommuneNotifyService.class);
public String notifyForMiniApp(String xml) throws Exception{ public String notifyForMiniApp(String xml) throws Exception{
Map<String,Object> notifyMap = WXUtil.doXMLParse(xml); Map<String,Object> notifyMap = WXUtil.doXMLParse(xml);
...@@ -85,6 +89,7 @@ public class CommuneNotifyService extends AbstractNotifyService { ...@@ -85,6 +89,7 @@ public class CommuneNotifyService extends AbstractNotifyService {
public String notifyForVoucherMiniApp(String xml) throws Exception{ public String notifyForVoucherMiniApp(String xml) throws Exception{
System.out.print(xml); System.out.print(xml);
logger.debug(xml);
Map<String,Object> notifyMap = WXUtil.doXMLParse(xml); Map<String,Object> notifyMap = WXUtil.doXMLParse(xml);
if(notifyMap.get("return_code").equals("SUCCESS")){ if(notifyMap.get("return_code").equals("SUCCESS")){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment