| | |
| | | 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; |
| | | |
| | |
| | | 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 |
| | |
| | | } |
| | | 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)) { |