Commit 16814b5b112bd28a613ac75a519bb9f420938999
1 parent
8f30575b55
Exists in
master
修改反馈,文章工作调用线上环境接口
Showing 2 changed files with 10 additions and 5 deletions
mainData/src/main/java/com/lymsh/yimiao/main/data/util/ArticleUtil.java
View file @
16814b5
... | ... | @@ -10,7 +10,8 @@ |
10 | 10 | |
11 | 11 | public static String getArticlesImages() { |
12 | 12 | HttpClient client = new HttpClient(); |
13 | - GetMethod get = new MessageUtil.UTF8GetMethod("http://ams.api.stage.healthbaby.com.cn/v1/imageArticles.action"); | |
13 | +// GetMethod get = new MessageUtil.UTF8GetMethod("http://ams.api.stage.healthbaby.com.cn/v1/imageArticles.action"); | |
14 | + GetMethod get = new MessageUtil.UTF8GetMethod("http://ams.api.healthbaby.com.cn/v1/imageArticles.action"); | |
14 | 15 | try { |
15 | 16 | client.executeMethod(get); |
16 | 17 | String result = new String(get.getResponseBodyAsString()); |
... | ... | @@ -27,7 +28,8 @@ |
27 | 28 | |
28 | 29 | public static String getCategory(){ |
29 | 30 | HttpClient client = new HttpClient(); |
30 | - GetMethod get = new MessageUtil.UTF8GetMethod("http://ams.api.stage.healthbaby.com.cn/v1/category.action"); | |
31 | +// GetMethod get = new MessageUtil.UTF8GetMethod("http://ams.api.stage.healthbaby.com.cn/v1/category.action"); | |
32 | + GetMethod get = new MessageUtil.UTF8GetMethod("http://ams.api.healthbaby.com.cn/v1/category.action"); | |
31 | 33 | try { |
32 | 34 | client.executeMethod(get); |
33 | 35 | String result = new String(get.getResponseBodyAsString()); |
... | ... | @@ -44,7 +46,8 @@ |
44 | 46 | |
45 | 47 | public static String getArticles(Integer categoryId,Integer page,Integer limit){ |
46 | 48 | HttpClient client = new HttpClient(); |
47 | - GetMethod get = new MessageUtil.UTF8GetMethod("http://ams.api.stage.healthbaby.com.cn/v1/yiMiaoArticles.action?categoryId="+categoryId+"&page="+page+"&limit="+limit); | |
49 | +// GetMethod get = new MessageUtil.UTF8GetMethod("http://ams.api.stage.healthbaby.com.cn/v1/yiMiaoArticles.action?categoryId="+categoryId+"&page="+page+"&limit="+limit); | |
50 | + GetMethod get = new MessageUtil.UTF8GetMethod("http://ams.api.healthbaby.com.cn/v1/yiMiaoArticles.action?categoryId="+categoryId+"&page="+page+"&limit="+limit); | |
48 | 51 | try { |
49 | 52 | client.executeMethod(get); |
50 | 53 | String result = new String(get.getResponseBodyAsString()); |
... | ... | @@ -65,7 +68,8 @@ |
65 | 68 | ArticleContext articleContext = new ArticleContext(); |
66 | 69 | |
67 | 70 | HttpClient client = new HttpClient(); |
68 | - GetMethod get = new MessageUtil.UTF8GetMethod("http://ams.api.stage.healthbaby.com.cn/v1/article.action?id="+id); | |
71 | +// GetMethod get = new MessageUtil.UTF8GetMethod("http://ams.api.stage.healthbaby.com.cn/v1/article.action?id="+id); | |
72 | + GetMethod get = new MessageUtil.UTF8GetMethod("http://ams.api.healthbaby.com.cn/v1/article.action?id="+id); | |
69 | 73 | try { |
70 | 74 | client.executeMethod(get); |
71 | 75 | String result = new String(get.getResponseBodyAsString()); |
mainData/src/main/java/com/lymsh/yimiao/main/data/util/FeedBackUtil.java
View file @
16814b5
... | ... | @@ -11,7 +11,8 @@ |
11 | 11 | |
12 | 12 | public static boolean sendFeedBack(String content,String name) { |
13 | 13 | HttpClient client = new HttpClient(); |
14 | - PostMethod post = new MessageUtil.UTF8PostMethod("http://ams.api.stage.healthbaby.com.cn/v1/yimiao/feedbacks.action"); | |
14 | +// PostMethod post = new MessageUtil.UTF8PostMethod("http://ams.api.stage.healthbaby.com.cn/v1/yimiao/feedbacks.action"); | |
15 | + PostMethod post = new MessageUtil.UTF8PostMethod("http://ams.api.healthbaby.com.cn/v1/yimiao/feedbacks.action"); | |
15 | 16 | NameValuePair[] data = { |
16 | 17 | new NameValuePair("content", content), |
17 | 18 | new NameValuePair("name", name) |