|
@@ -66,9 +66,9 @@ public class UplodeUtil {
|
|
|
}
|
|
|
|
|
|
private static String charSet = "UTF-8";
|
|
|
- private static String appid = "khy21062900750001";
|
|
|
- private static String secret = "638328d345a04f4f9aa8af6b0c79f536";
|
|
|
- private static String baseUrl = "https://tosb-gateway.wlhyos.pre.xiaokuaikeji.com/tosb/";
|
|
|
+ private static String appid = "f8ff18fb5a254d298267240408c989f7";
|
|
|
+ private static String secret = "af85e008314e45209cbe30a7973a2b15";
|
|
|
+ private static String baseUrl = "https://tosb-gateway.wlhyos.com/tosb/";
|
|
|
|
|
|
// public static void main(String[] args) throws Exception {
|
|
|
// Driver driver = new Driver();
|
|
@@ -609,7 +609,7 @@ public class UplodeUtil {
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
public static String postFile(InputStream fileInputStream, String uploadFilename) throws Exception{
|
|
|
- HttpPost httpPost = new HttpPost("https://tosb-gateway.wlhyos.pre.xiaokuaikeji.com/tosb/file/uploadFile");
|
|
|
+ HttpPost httpPost = new HttpPost(baseUrl+"/file/uploadFile");
|
|
|
CloseableHttpClient httpClient = sslClient();
|
|
|
|
|
|
MultipartEntityBuilder builder = MultipartEntityBuilder.create();
|