Kaynağa Gözat

测试调试报错

tongfeng 2 yıl önce
ebeveyn
işleme
c78823c755

+ 3 - 0
eladmin-system/src/main/java/me/zhengjie/base/util/JuheServiceUtil.java

@@ -72,6 +72,7 @@ public class JuheServiceUtil {
         String response = EMPTY;
         PostMethod postMethod = null;
         try {
+            System.err.println("test1");
             postMethod = new PostMethod(JuHeURl);
             // 将表单的值放入postMethod中
             postMethod.addParameter("idcard",idCard);
@@ -80,7 +81,9 @@ public class JuheServiceUtil {
             postMethod.addParameter("key",KEY_CODE);
             postMethod.getParams().setParameter(HttpMethodParams.HTTP_CONTENT_CHARSET, UTF8);
             // 执行postMethod
+            System.err.println("test2");
             int statusCode = client.executeMethod(postMethod);
+            System.err.println("statusCode"+statusCode);
             if (statusCode == HttpStatus.SC_OK) {
                 response = postMethod.getResponseBodyAsString();
                 JSONObject jsonObj = JSON.parseObject(response);