Browse Source

Merge branch 'master' of https://e.coding.net/chuanghaikeji/jinganxiangsu/Homestay_app_houtai

lijie 2 years ago
parent
commit
07dcfeb063
1 changed files with 5 additions and 1 deletions
  1. 5 1
      mhotel/src/com/happy/common/http/Get_airticle.java

+ 5 - 1
mhotel/src/com/happy/common/http/Get_airticle.java

@@ -7,7 +7,7 @@ import com.happy.Until.HttpUtils;
 
 public class Get_airticle {
 
-    public String get(int page, int rows) throws Exception {
+    public static String get(int page, int rows) throws Exception {
         Gson gson = new Gson();
         String appid = "wx19d0b6ab36feedf4";
         String secret = "309fca4f1a682e6c3d3ecf3b577b0707";
@@ -24,4 +24,8 @@ public class Get_airticle {
         data.put("no_content", 0);
         return HttpsClient.sendJson("https://api.weixin.qq.com/cgi-bin/freepublish/batchget?access_token="+access_token, data);
     }
+
+    public static void main(String[] args) throws Exception {
+        System.out.println(get(1,6));
+    }
 }