Commit f5a32d69 authored by Su-Yi's avatar Su-Yi

修改tku

parent 1a6ad1ca
...@@ -44,6 +44,9 @@ public class CircleFriends { ...@@ -44,6 +44,9 @@ public class CircleFriends {
public void 获取tab列表() throws IOException { public void 获取tab列表() throws IOException {
Response response = network.getResponse(FRIENDS_GETMATERIALTAGS); Response response = network.getResponse(FRIENDS_GETMATERIALTAGS);
System.out.println("======tab列表=====");
response.body().prettyPrint();
int tabCount = response.jsonPath().getInt("data.size()"); int tabCount = response.jsonPath().getInt("data.size()");
int id = response.jsonPath().getInt("data.find {it.name == '保险'}.id"); //标签tab int id = response.jsonPath().getInt("data.find {it.name == '保险'}.id"); //标签tab
firstTagId = response.jsonPath().getInt("data[0].id");//第一个标签的ID firstTagId = response.jsonPath().getInt("data[0].id");//第一个标签的ID
...@@ -56,6 +59,9 @@ public class CircleFriends { ...@@ -56,6 +59,9 @@ public class CircleFriends {
Map<String, Object> params = new HashMap<String, Object>(); Map<String, Object> params = new HashMap<String, Object>();
params.put("firstTagId",firstTagId); params.put("firstTagId",firstTagId);
Response response = network.getResponse(params,FRIENDS_GETUNREADTIMELINSLIST); Response response = network.getResponse(params,FRIENDS_GETUNREADTIMELINSLIST);
System.out.println("======推荐列表====="+params);
response.body().prettyPrint();
int count = response.jsonPath().getInt("data.size()"); int count = response.jsonPath().getInt("data.size()");
contentId = response.jsonPath().getString("data[0].contentId"); //素材ID contentId = response.jsonPath().getString("data[0].contentId"); //素材ID
tagId = response.jsonPath().getString("data[0].materialTag"); //素材频道ID tagId = response.jsonPath().getString("data[0].materialTag"); //素材频道ID
...@@ -81,6 +87,10 @@ public class CircleFriends { ...@@ -81,6 +87,10 @@ public class CircleFriends {
params.put("contentId",contentId); params.put("contentId",contentId);
params.put("firstTagId",firstTagId); params.put("firstTagId",firstTagId);
Response response = network.postResponse(params,FRIENDS_ASYNCMARKTIMELINEREAD); Response response = network.postResponse(params,FRIENDS_ASYNCMARKTIMELINEREAD);
System.out.println("====标记为已读===="+params);
response.body().prettyPrint();
boolean data = response.jsonPath().getBoolean("data"); boolean data = response.jsonPath().getBoolean("data");
Assert.assertTrue(data,network.message(params,FRIENDS_ASYNCMARKTIMELINEREAD,"标记已读-接口有误")); Assert.assertTrue(data,network.message(params,FRIENDS_ASYNCMARKTIMELINEREAD,"标记已读-接口有误"));
...@@ -101,6 +111,9 @@ public class CircleFriends { ...@@ -101,6 +111,9 @@ public class CircleFriends {
params.put("contentId",contentId); params.put("contentId",contentId);
params.put("operate",1); params.put("operate",1);
Response response = network.getResponse(params,FRIENDS_ADDORCANCELCOLLECT); Response response = network.getResponse(params,FRIENDS_ADDORCANCELCOLLECT);
System.out.println("====收藏素材===="+params);
response.body().prettyPrint();
boolean isAdd = response.jsonPath().getBoolean("data"); boolean isAdd = response.jsonPath().getBoolean("data");
Assert.assertTrue(isAdd,network.message(params,FRIENDS_ADDORCANCELCOLLECT,"收藏素材失败")); Assert.assertTrue(isAdd,network.message(params,FRIENDS_ADDORCANCELCOLLECT,"收藏素材失败"));
...@@ -123,6 +136,9 @@ public class CircleFriends { ...@@ -123,6 +136,9 @@ public class CircleFriends {
Map<String, Object> params = new HashMap<String, Object>(); Map<String, Object> params = new HashMap<String, Object>();
params.put("tagId",tagId); params.put("tagId",tagId);
Response response = network.getResponse(params,FRIENDS_CHANNELDETAIL); Response response = network.getResponse(params,FRIENDS_CHANNELDETAIL);
System.out.println("====频道页===="+params);
response.body().prettyPrint();
String name = response.jsonPath().getString("data.tagName"); String name = response.jsonPath().getString("data.tagName");
Assert.assertEquals(name,tagName,network.message(params,FRIENDS_CHANNELDETAIL,"素材频道页-头部获取有误")); Assert.assertEquals(name,tagName,network.message(params,FRIENDS_CHANNELDETAIL,"素材频道页-头部获取有误"));
......
...@@ -6,11 +6,11 @@ public class BasicConfig { ...@@ -6,11 +6,11 @@ public class BasicConfig {
// *************** 配置信息,每次重新配置以下信息就ok *************** // *************** 配置信息,每次重新配置以下信息就ok ***************
// 是否推送 // 是否推送
public static final boolean isPushReport = true; //true public static final boolean isPushReport = false; //true
// 用户微信昵称 // 用户微信昵称
public static final String WECHAT_NAME = "小疙瘩人寿"; //true public static final String WECHAT_NAME = "小疙瘩人寿"; //true
// 用户tku // 用户tku
public static final String AGENT_TKU = "T3gM31f18jAW2PUUBL7WeumMZgc7jLbvQNJ7rEypEi3TZA1tmwWnYPMz3EuSkhzt1ZzKKb4TrwCvkrR86h"; public static final String AGENT_TKU = "T3gM31f18jAW2PVEuxwPreHo8jGtZ4RXgxzf6auDUuycYgcqWT9RW2qrbYKFVpTCj4yhhp9BfQ6RDrgfYK";
// *************** 钉钉机器人 *************** // *************** 钉钉机器人 ***************
// 线上-告警群 // 线上-告警群
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment