|
@@ -2,6 +2,7 @@ package nckd.fi.all.common.utils;
|
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
import com.alibaba.fastjson.JSON;
|
|
|
|
+import kd.bos.script.annotations.KSObject;
|
|
import org.apache.http.HttpEntity;
|
|
import org.apache.http.HttpEntity;
|
|
import org.apache.http.client.methods.CloseableHttpResponse;
|
|
import org.apache.http.client.methods.CloseableHttpResponse;
|
|
import org.apache.http.client.methods.HttpPost;
|
|
import org.apache.http.client.methods.HttpPost;
|
|
@@ -9,7 +10,7 @@ import org.apache.http.entity.StringEntity;
|
|
import org.apache.http.impl.client.CloseableHttpClient;
|
|
import org.apache.http.impl.client.CloseableHttpClient;
|
|
import org.apache.http.impl.client.HttpClientBuilder;
|
|
import org.apache.http.impl.client.HttpClientBuilder;
|
|
import org.apache.http.util.EntityUtils;
|
|
import org.apache.http.util.EntityUtils;
|
|
-
|
|
|
|
|
|
+@KSObject
|
|
public class ApiHttpUtils {
|
|
public class ApiHttpUtils {
|
|
|
|
|
|
public static String Posthttp(String url, String Params) throws Exception {
|
|
public static String Posthttp(String url, String Params) throws Exception {
|