异常提示
解决前
String request = WXUtil.httpRequest("https://api.mch.weixin.qq.com/pay/unifiedorder", "POST", param);
Map<String, String> map = new HashMap<String, String>(); // 将解析结果存储在HashMap中
InputStream in = new ByteArrayInputStream(request.getBytes());
SAXReader reader = new SAXReader(); // 读取输入流
Document document = reader.read(in);
解决后
String request = WXUtil.httpRequest("https://api.mch.weixin.qq.com/pay/unifiedorder", "POST", param);
Map<String, String> map = new HashMap<String, String>(); // 将解析结果存储在HashMap中
InputStream in = new ByteArrayInputStream(request.getBytes("UTF-8"));
SAXReader reader = new SAXReader(); // 读取输入流
Document document = reader.read(in);