Преглед на файлове

客户运单上传模版校验优化20220516

mashengyi преди 2 години
родител
ревизия
4f6b5b9da7
променени са 1 файла, в които са добавени 13 реда и са изтрити 36 реда
  1. 13 36
      src/main/java/com/jkcredit/invoice/util/QueryDemo_Test.java

+ 13 - 36
src/main/java/com/jkcredit/invoice/util/QueryDemo_Test.java

@@ -8,36 +8,21 @@ import org.apache.commons.httpclient.methods.PostMethod;
 import java.io.*;
 import java.util.Iterator;
 
-/**
- * Created by zhangqingxin Date : 16/11/6 Time : 10:41
- * <p/>
- * 参考一(HttpClient):http://mvnrepository.com/artifact/commons-httpclient/commons-
- * httpclient/3.1
- * 参考一(json-lib):http://mvnrepository.com/artifact/net.sf.json-lib/json-lib/2.4
- */
+
 public class QueryDemo_Test {
 
 	/**
 	 * 测试地址
 	 */
 		private static final String URL = "http://etc.jkcredit.com:9999/api/rest";
-	 	//private static final String URL = "http://110.88.150.74:80/credit?api=credit.sec.data_test";
-	  	//private static final String URL = "http://110.88.150.74/credit?api=credit.sec.data";
-		//private static final String URL = "http://123.57.186.204/gateway?api=credit.sec.data_test";
-		//private static final String URL = "http://123.57.186.204/gateway?api=credit.sec.data";
-		//private static final String URL = "http://www1.h11.site/gateway?api=credit.sec.data";
-	 	//private static final String URL = "http://110.88.150.68:8000/gateway?api=credit.sec.data";
-		//private static final String URL = "http://60.205.114.163:8000/gateway?api=credit.sec.data";
-	 	//private static final String URL = " http://45.126.120.88/gateway?api=credit.sec.data"; 
-		//private static final String URL = "http://119.18.195.163/gateway?api=credit.sec.data";
+
 
 	/**
 	 * 分配的appKey
 	 */
-	 	//private static final String appKey = "junxin_test";
+
 	
-		private static final String appKey = "jkxy";
-	 	//private static final String appKey = "ccx";
+		private static final String appKey = "xxxxxx";
 
 	/**
 	 * 方法入口
@@ -75,13 +60,11 @@ public class QueryDemo_Test {
 		 * 基本参数
 		 */
 		JSONObject paramJsonObj = new JSONObject();
-		paramJsonObj.put("api", "PROTOCOL_ADD_V1");//CMCC_MOBILE_CHECK_V8//CMCC_3RD_V2//CMCC_3RD_DETAIL_V1//
-		//paramJsonObj.put("api", "MSISDNMD5TOIMEI");//MOBILE_CHECK_V1//CMCC_3RD_VERIFY_V4//CTCC_CHECK_V1
+		paramJsonObj.put("api", "PROTOCOL_ADD_V1");
 		paramJsonObj.put("appKey", appKey);
 	    paramJsonObj.put("appSecret",
-		"7697CE9BB9D5A856CFDDE738320AD34EA53E483C");
-		//"84C1CE24EDF361F28072E313BD87EAB24CC727CF");
-	    
+		"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
+
 	   
 
 		/**
@@ -104,19 +87,13 @@ public class QueryDemo_Test {
 		 * 具体业务参数放在data中
 		 */
 		  JSONObject dataJson = new JSONObject();
-          /*dataJson.put("name", SHA256Utils.String2SHA256("高峰明"));
-	      dataJson.put("id_number",SHA256Utils.String2SHA256("152322196311063719"));
-	      dataJson.put("mobile",SHA256Utils.String2SHA256("13104866236"));
-	      dataJson.put("encrypt","SHA256");*/
-		  dataJson.put("companyNum", "11188342");
-	      dataJson.put("serviceStartTime","2022-05-11T11:30:37");
-	      dataJson.put("serviceEndTime","2023-05-11T21:30:37");
-	      dataJson.put("contractFileName","马圣毅测试20220511.pdf");
+
+		  dataJson.put("companyNum", "xxxxxx");
+	      dataJson.put("serviceStartTime","2022-05-16T11:30:37");
+	      dataJson.put("serviceEndTime","2023-05-16T21:30:37");
+	      dataJson.put("contractFileName","xxxxxx测试20220516.pdf");
 	      dataJson.put("serviceType","3");
-	      dataJson.put("base64Str",Base64Utils.fileToBase64Str(new File("/Users/mashengyi/Desktop/spring高级源码笔记.pdf")));
-		 /* List<String> list = new ArrayList<>();
-			list.add("13752639577");
-	        dataJson.put("msisdnmd5list",list);*/
+	      dataJson.put("base64Str",Base64Utils.fileToBase64Str(new File("/Users/mashengyi/Desktop/xxxxxx.pdf")));
 		  return dataJson;
 	}