吴学文
2020-01-11 8b47dded9b195b5ddce8c9c0c15186bdf48e47e3
AppFrontService/src/main/java/com/java110/app/smo/payment/impl/ToNotifySMOImpl.java
@@ -17,6 +17,7 @@
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.*;
import org.springframework.stereotype.Service;
import org.springframework.web.client.HttpStatusCodeException;
import org.springframework.web.client.RestTemplate;
@@ -25,10 +26,11 @@
import java.io.InputStream;
import java.util.*;
@Service("toNotifySMOImpl")
public class ToNotifySMOImpl implements IToNotifySMO {
    private static final Logger logger = LoggerFactory.getLogger(AppAbstractComponentSMO.class);
    private static final String APP_ID = "";
    private static final String APP_ID = "992020011134400001";
    @Autowired
@@ -52,7 +54,9 @@
            }
            outputStream.close();
            inputStream.close();
            Map<String, Object> map = PayUtil.getMapFromXML(new String(outputStream.toByteArray(), "utf-8"));
            String wxReqXml = new String(outputStream.toByteArray(), "utf-8");
            logger.debug("微信回调报文" + wxReqXml);
            Map<String, Object> map = PayUtil.getMapFromXML(wxReqXml);
            logger.info("【小程序支付回调】 回调数据: \n" + map);
            String returnCode = (String) map.get("return_code");
            if ("SUCCESS".equalsIgnoreCase(returnCode)) {