Commit 6b2beab5 authored by 张永's avatar 张永

加方法

parent 9a815612
package com.egolm.common;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
......
......@@ -10,6 +10,7 @@ import java.net.URL;
import java.nio.charset.Charset;
import java.security.KeyStore;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.regex.Matcher;
......@@ -225,6 +226,16 @@ public class HttpsUtil {
}
}
}
/**
* 发送有参数的POST请求,参数为json格式
*/
public static String doPostForJson(String url, String json) {
Map<String, String> map = new HashMap<String, String>();
String result = HttpUtil.post(url, json, map,null);
return result;
}
/**
* 调用证书进行退款 WX提供
*
......
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 to comment