| | |
| | | import net.sf.json.JSONObject; |
| | | import org.apache.http.HttpEntity; |
| | | import org.apache.http.HttpResponse; |
| | | import org.apache.http.client.ClientProtocolException; |
| | | import org.apache.http.client.methods.HttpGet; |
| | | import org.apache.http.client.methods.HttpPost; |
| | | import org.apache.http.entity.ContentType; |
| | |
| | | |
| | | String appid = "51258"; |
| | | String appkey = "a9b6e0758dc40d3c346887fc0e154642"; |
| | | String project = "E98Tx3"; |
| | | String project = "2CHnV3"; |
| | | String signtype = ""; |
| | | vars.put("code", code); |
| | | vars.put("time", time); |
| | |
| | | /** |
| | | * 获取时间戳 |
| | | * |
| | | * @return |
| | | */ |
| | | private static String getTimestamp() { |
| | | CloseableHttpClient closeableHttpClient = HttpClientBuilder.create().build(); |