Commit e94af801 authored by xiamengchen's avatar xiamengchen

补充客户阅读偏好及留言板内容

parent 16e37d73
...@@ -21,7 +21,7 @@ public class ForwardAndRead implements Authorization { ...@@ -21,7 +21,7 @@ public class ForwardAndRead implements Authorization {
private Long sellerId; private Long sellerId;
private String visitId; private String visitId;
private String insuranceId; private String insuranceId;
private String forwardTime; private long forwardTime;
@BeforeClass @BeforeClass
public void setUp() throws IOException{ public void setUp() throws IOException{
...@@ -41,7 +41,7 @@ public class ForwardAndRead implements Authorization { ...@@ -41,7 +41,7 @@ public class ForwardAndRead implements Authorization {
boolean data = response.jsonPath().getBoolean("data"); boolean data = response.jsonPath().getBoolean("data");
Assert.assertTrue(data, network.message(param, BasicConfig.FORWARD, "转发素材失败", response.body().asString())); Assert.assertTrue(data, network.message(param, BasicConfig.FORWARD, "转发素材失败", response.body().asString()));
forwardTime = response.jsonPath().getString("timestamp"); forwardTime = response.jsonPath().getLong("timestamp");
} }
@Test(description = "代理人转发名片", priority = 2) @Test(description = "代理人转发名片", priority = 2)
...@@ -122,7 +122,16 @@ public class ForwardAndRead implements Authorization { ...@@ -122,7 +122,16 @@ public class ForwardAndRead implements Authorization {
Assert.assertTrue(response.jsonPath().getBoolean("success"), network.message(param, BasicConfig.CONTENT_READ, "接口调用失败", response.body().asString())); Assert.assertTrue(response.jsonPath().getBoolean("success"), network.message(param, BasicConfig.CONTENT_READ, "接口调用失败", response.body().asString()));
} }
@Test(description = "二度访客领取赠险", priority = 7) @Test(description = "添加访问记录", priority = 7)
public void 添加访问记录() throws IOException{
param.clear();
param.put("forwardTime", forwardTime + 5000);
param.put("scid", articleScId);
response = network.postResponse(param, BasicConfig.DYNAMIC_ADDVISIT);
Assert.assertTrue(response.jsonPath().getBoolean("data"), network.message(param, BasicConfig.DYNAMIC_ADDVISIT, "添加访问记录失败", response.body().asString()));
}
@Test(description = "二度访客领取赠险", priority = 8)
public void 二度访客领取赠险() throws IOException{ public void 二度访客领取赠险() throws IOException{
param = new HashMap<>(); param = new HashMap<>();
param.put("clueTypeName", "WELFARE_INSURANCE"); param.put("clueTypeName", "WELFARE_INSURANCE");
...@@ -135,7 +144,6 @@ public class ForwardAndRead implements Authorization { ...@@ -135,7 +144,6 @@ public class ForwardAndRead implements Authorization {
Assert.assertTrue(response.jsonPath().getBoolean("success"), network.message(param, BasicConfig.SELLERCARD_SENDPUSHFORSCAN, "接口调用失败", response.body().asString())); Assert.assertTrue(response.jsonPath().getBoolean("success"), network.message(param, BasicConfig.SELLERCARD_SENDPUSHFORSCAN, "接口调用失败", response.body().asString()));
String data = response.jsonPath().getString("data"); String data = response.jsonPath().getString("data");
Assert.assertEquals(data, "success", network.message(param, BasicConfig.SELLERCARD_SENDPUSHFORSCAN, "领取赠险失败", response.body().asString())); Assert.assertEquals(data, "success", network.message(param, BasicConfig.SELLERCARD_SENDPUSHFORSCAN, "领取赠险失败", response.body().asString()));
} }
// 通过素材contentId获取线索员文章scId // 通过素材contentId获取线索员文章scId
......
...@@ -761,6 +761,9 @@ public class BasicConfig { ...@@ -761,6 +761,9 @@ public class BasicConfig {
public static final String CHAT_LIST = HOST + "/kjy/mp/chat/list"; public static final String CHAT_LIST = HOST + "/kjy/mp/chat/list";
public static final String CHAT_GETSUBSCRIBESTATUS = HOST + "/kjy/mp/chat/getSubscribeStatus"; public static final String CHAT_GETSUBSCRIBESTATUS = HOST + "/kjy/mp/chat/getSubscribeStatus";
public static final String CHAT_LINKMANLIST = HOST + "/kjy/mp/chat/sellerLinkmanList"; public static final String CHAT_LINKMANLIST = HOST + "/kjy/mp/chat/sellerLinkmanList";
public static final String CHAT_COUNTHISTORY = HOST + "/kjy/mp/chat/countHistory";
public static final String CHAT_READED = HOST + "/kjy/mp/chat/readed";
public static final String CHAT_NEW = HOST + "/kjy/mp/chat/new";
// *************** 文章 *************** // *************** 文章 ***************
...@@ -845,6 +848,9 @@ public class BasicConfig { ...@@ -845,6 +848,9 @@ public class BasicConfig {
public static final String TEAMDATA = HOST + "/kjy/mp/seller/team/data"; public static final String TEAMDATA = HOST + "/kjy/mp/seller/team/data";
public static final String TEAMMEMBERNUM = HOST + "/kjy/mp/seller/team/memberNumber"; public static final String TEAMMEMBERNUM = HOST + "/kjy/mp/seller/team/memberNumber";
public static final String TEAMRANKINGLIST = HOST + "/kjy/mp/seller/team/rankingList"; public static final String TEAMRANKINGLIST = HOST + "/kjy/mp/seller/team/rankingList";
public static final String HASNEWTASK = HOST + "/kjy/mp/seller/team/task/hasNewTask";
public static final String MYTASKHEADER = HOST + "/kjy/mp/seller/team/task/myTaskHeader";
public static final String MYTASKLIST = HOST + "/kjy/mp/seller/team/task/myTaskList";
// 团队管理 // 团队管理
public static final String FINDPAGEBYCONTENTTYPE = HOST + "/kjy/mp/exclusiveItem/findPageByContentType"; public static final String FINDPAGEBYCONTENTTYPE = HOST + "/kjy/mp/exclusiveItem/findPageByContentType";
public static final String TEAMMEMBER = HOST + "/kjy/mp/seller/team/member"; public static final String TEAMMEMBER = HOST + "/kjy/mp/seller/team/member";
......
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