puzhibing
2023-11-25 53e7558400dcacecdce70e39ebfe1727740f9296
cloud-server-other/src/main/java/com/dsh/other/util/HttpRequestUtil.java
@@ -56,6 +56,7 @@
      }
      return result;
   }
   public static String postRequest1(String url, Map<String, String> params,String appKey,String appSecret) {
      // 构造HttpClient的实例
      HttpClient httpClient = new HttpClient();
@@ -104,6 +105,7 @@
      }
      return result;
   }
   private static String string2Sha1(String str){
      if(str==null||str.length()==0){
         return null;
@@ -128,6 +130,7 @@
         return null;
      }
   }
   public static String getRequest(String url, Map<String, String> params) {
      // 构造HttpClient实例
      HttpClient client = new HttpClient();
@@ -170,6 +173,7 @@
   
   /**
    * 发送网络请求
     *
    * @param url
    * @return
    */
@@ -212,17 +216,17 @@
   }
   
   
   /**
    * jsonp跨域请求数据响应<br/>
    * 方法名:responsejsonpData<br/>
    * @author:Mryang<br/>
    * @createTime:2016年7月31日-下午11:17:31 <br/>
    * @tel: 15198268054<br/>
     *
    * @param request
    * @param response
    * @param map void<br/>
    * @exception <br/>
     * @throws <br/>
     * @author:Mryang<br/>
     * @createTime:2016年7月31日-下午11:17:31 <br/>
     * @tel: 15198268054<br   />
    * @since  1.0.0
    */
   public void responsejsonpData(HttpServletRequest request, HttpServletResponse response, Map<String, Object> map) {
@@ -237,17 +241,6 @@
         e.printStackTrace();
      }
   }
   
   
}