提交 769f54f1 authored 作者: chaoyanjun's avatar chaoyanjun

--no commit message

上级 2cf841c7
......@@ -247,11 +247,4 @@ public class LiveController {
return microRoarReturn;
}
public static void main(String[] args) throws ParseException {
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-mm-dd HH:mm:ss");
Date date = simpleDateFormat.parse("2019-12-16 10:10:10");
long time = date.getTime();
System.out.println(time);
}
}
......@@ -35,7 +35,6 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.zrqx.core.util.datatype.StringUtils;
import com.zrqx.live.bg.controller.MicroRoarController;
/** java模拟 post get请求发送
* @author ray
......@@ -223,13 +222,13 @@ public class HttpsUtils {
CloseableHttpClient httpclient = HttpClients.custom().setDefaultRequestConfig(defaultRequestConfig).build();
// HttpPost httpPost = new HttpPost(POST_URL);
StringBuilder param=new StringBuilder("");
//将要拼接的参数urlencode
//将要拼接的参数urlencode
for (String key:urlParam.keySet()){
param.append(key + "=" + URLEncoder.encode(urlParam.get(key), "UTF-8") + "&");
}
//pingjie
//pingjie
HttpPost httpPost = new HttpPost(POST_URL+param.toString());
//请求参数设置
//请求参数设置
if(StringUtils.isNotEmpty(body)){
StringEntity entity=new StringEntity(body, ContentType.APPLICATION_JSON);
httpPost.setEntity(entity);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论