admin
2020-05-20 98b1a0affd69bbe63223c21fdd2c404e8bedfccb
utils/src/main/java/org/yeshi/utils/wx/WXPayUtil.java
@@ -26,9 +26,8 @@
 *
 */
public class WXPayUtil {
   private static String post(String url,String entity)
   {
   private static String post(String url, String entity) {
      HttpClient client = new HttpClient();
      PostMethod method = new PostMethod(url);
      method.setRequestBody(entity);
@@ -221,10 +220,10 @@
      String entity = WXUtil.loadWXMessage(map);
      String result = post("https://api.mch.weixin.qq.com/pay/unifiedorder", entity);
      String result = HttpUtil.post("https://api.mch.weixin.qq.com/pay/unifiedorder", entity);
      try {
         System.out.println("统一下单结果:" + new String(result.getBytes("GBK"), "UTF-8"));
      } catch (UnsupportedEncodingException e) {
      } catch (Exception e) {
         e.printStackTrace();
      }
      Map<String, String> resultMap = WXUtil.parseXML(result);