Commit efd77b22 authored by 龚小红's avatar 龚小红

Merge branch 'master' into 2021072201-gxh

parents 743f866b e5882849
...@@ -89,6 +89,7 @@ public class Agent implements Authorization { ...@@ -89,6 +89,7 @@ public class Agent implements Authorization {
params.put("phoneNumber", "152588101691"); params.put("phoneNumber", "152588101691");
params.put("jobNumber", "KJJ0000"); params.put("jobNumber", "KJJ0000");
params.put("wechatQrCode", "//yun.dui88.com/kjy/nc/qrcode1/1981ec88d22fe37041feac4724c627670817.png"); params.put("wechatQrCode", "//yun.dui88.com/kjy/nc/qrcode1/1981ec88d22fe37041feac4724c627670817.png");
params.put("avatar", "//yun.dui88.com/kjy/nc/qrcode1/1981ec88d22fe37041feac4724c627670817.png");
Response response = network.postResponse(params, BasicConfig.MOBILE_AgentEditCardInfo); Response response = network.postResponse(params, BasicConfig.MOBILE_AgentEditCardInfo);
Boolean data = response.jsonPath().getBoolean("data"); Boolean data = response.jsonPath().getBoolean("data");
System.out.println(data); System.out.println(data);
......
...@@ -219,18 +219,21 @@ public class FlipCard implements Authorization { ...@@ -219,18 +219,21 @@ public class FlipCard implements Authorization {
//预约 //预约
@Test(description = "翻牌集字_预约", priority = 12) @Test(description = "翻牌集字_预约", priority = 12)
public void 翻牌集字_预约() { public void 翻牌集字_预约() {
Map<String, Object> params = new HashMap<>(); Map<String, Object> params = new HashMap<>();
params.put("bizType",1); params.put("bizType",1);
params.put("bizId",LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); params.put("bizId",LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
params.put("markIds",Collections.singleton(144)); params.put("markIds",Collections.singleton(144));
visitorAuth9(); visitorAuth9();
ThreadSleepUtils.sleep(2000);
Response response = network.postResponse(params, BasicConfig.MOBILE_appointment); Response response = network.postResponse(params, BasicConfig.MOBILE_appointment);
boolean data = response.jsonPath().getBoolean("data"); boolean data = response.jsonPath().getBoolean("data");
System.out.println(data); System.out.println(data);
Assert.assertTrue(data, network.message(params, BasicConfig.MOBILE_appointment, "预约失败", response.body().asString())); Assert.assertTrue(data, network.message(params, BasicConfig.MOBILE_appointment, "预约失败", response.body().asString()));
visitorAuth22(); visitorAuth22();
ThreadSleepUtils.sleep(2000);
Response appointmentRes = network.postResponse(params, BasicConfig.MOBILE_appointment); Response appointmentRes = network.postResponse(params, BasicConfig.MOBILE_appointment);
boolean data1 = appointmentRes.jsonPath().getBoolean("data"); boolean data1 = appointmentRes.jsonPath().getBoolean("data");
System.out.println(data1); System.out.println(data1);
......
...@@ -1476,6 +1476,7 @@ public class SaveLive implements Authorization { ...@@ -1476,6 +1476,7 @@ public class SaveLive implements Authorization {
Map<String, Object> Params = new HashMap<>(); Map<String, Object> Params = new HashMap<>();
Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey())); Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey()));
Params.put("transitionVideoUrl","https://yun.dui88.com/kjy/media/file/20210619/bb4a63f026ee228ad99b2367cfa83229.mp4"); Params.put("transitionVideoUrl","https://yun.dui88.com/kjy/media/file/20210619/bb4a63f026ee228ad99b2367cfa83229.mp4");
Params.put("transitionVideoUrl2","https://yun.dui88.com/kjy/media/file/20210722/c8b13c0316456c5f43b8713ed4b5cae2.mp4");
Params.put("videoDelayTime", 5); Params.put("videoDelayTime", 5);
Response response = network.postResponse(Params, BasicConfig.MANAGER_confCaveOrUpdate); Response response = network.postResponse(Params, BasicConfig.MANAGER_confCaveOrUpdate);
boolean data = response.jsonPath().getBoolean("data"); boolean data = response.jsonPath().getBoolean("data");
...@@ -1517,11 +1518,11 @@ public class SaveLive implements Authorization { ...@@ -1517,11 +1518,11 @@ public class SaveLive implements Authorization {
Response response = network.getResponse(Params, BasicConfig.MANAGER_getConfDetail); Response response = network.getResponse(Params, BasicConfig.MANAGER_getConfDetail);
boolean transitionVideoConfBuildStatus = response.jsonPath().getBoolean("data.transitionVideoConfBuildStatus"); boolean transitionVideoConfBuildStatus = response.jsonPath().getBoolean("data.transitionVideoConfBuildStatus");
System.out.println(transitionVideoConfBuildStatus); System.out.println(transitionVideoConfBuildStatus);
Assert.assertTrue(transitionVideoConfBuildStatus, network.message(Params, BasicConfig.MANAGER_getConfDetail, "未配置翻牌", response.body().asString())); Assert.assertTrue(transitionVideoConfBuildStatus, network.message(Params, BasicConfig.MANAGER_getConfDetail, "未配置过渡视频", response.body().asString()));
boolean transitionVideoConfStatus = response.jsonPath().getBoolean("data.transitionVideoConfStatus"); boolean transitionVideoConfStatus = response.jsonPath().getBoolean("data.transitionVideoConfStatus");
System.out.println(transitionVideoConfStatus); System.out.println(transitionVideoConfStatus);
Assert.assertTrue(transitionVideoConfStatus, network.message(Params, BasicConfig.MANAGER_getConfDetail, "未开启翻牌", response.body().asString())); Assert.assertTrue(transitionVideoConfStatus, network.message(Params, BasicConfig.MANAGER_getConfDetail, "未开启过渡视频", response.body().asString()));
} }
......
...@@ -404,6 +404,7 @@ public class Lottery implements Authorization { ...@@ -404,6 +404,7 @@ public class Lottery implements Authorization {
@Test(description = "访客B参与记录", priority = 30) @Test(description = "访客B参与记录", priority = 30)
public void 访客B参与记录() { public void 访客B参与记录() {
visitorAuth13(); visitorAuth13();
ThreadSleepUtils.sleep(3000);
Map<String, Object> Params = new HashMap<>(); Map<String, Object> Params = new HashMap<>();
Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
Params.put("shareUserId","Kj20ODYz"); Params.put("shareUserId","Kj20ODYz");
...@@ -421,6 +422,7 @@ public class Lottery implements Authorization { ...@@ -421,6 +422,7 @@ public class Lottery implements Authorization {
@Test(description = "访客A获取好运红包领取记录", priority = 31) @Test(description = "访客A获取好运红包领取记录", priority = 31)
public void 访客A获取好运红包领取记录() { public void 访客A获取好运红包领取记录() {
visitorAuth13(); visitorAuth13();
ThreadSleepUtils.sleep(500);
Map<String, Object> Params = new HashMap<>(); Map<String, Object> Params = new HashMap<>();
Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
Params.put("shareUserId","Kj20ODYz"); Params.put("shareUserId","Kj20ODYz");
...@@ -433,12 +435,9 @@ public class Lottery implements Authorization { ...@@ -433,12 +435,9 @@ public class Lottery implements Authorization {
int amount = response.jsonPath().getJsonObject("data.amount"); int amount = response.jsonPath().getJsonObject("data.amount");
Assert.assertTrue(amount==30, network.message(Params, BasicConfig.MOBILE_joinRecord, "领取金额为null", response.body().asString())); Assert.assertTrue(amount==30, network.message(Params, BasicConfig.MOBILE_joinRecord, "领取金额为null", response.body().asString()));
} }
@Test(description = "访客A抽奖券列表", priority = 32) @Test(description = "访客A抽奖券列表", priority = 32)
public void 访客A抽奖券列表() { public void 访客A抽奖券列表() {
visitorAuth(); visitorAuth();
......
...@@ -385,7 +385,7 @@ public class BasicConfig { ...@@ -385,7 +385,7 @@ public class BasicConfig {
public static final String MOBILE_AgentPersonalTeamCharts = MOBILE_HOST + "/kjy/live/agent/personalTeamCharts"; public static final String MOBILE_AgentPersonalTeamCharts = MOBILE_HOST + "/kjy/live/agent/personalTeamCharts";
public static final String MOBILE_AgentOwnCharts = MOBILE_HOST + "/kjy/live/agent/ownCharts"; public static final String MOBILE_AgentOwnCharts = MOBILE_HOST + "/kjy/live/agent/ownCharts";
public static final String MOBILE_MyCustomerList = MOBILE_HOST + "/kjy/live/agent/clue/myCustomerList";
public static final String MOBILE_VideoList = MOBILE_HOST + "/kjy/live/company/video/list"; public static final String MOBILE_VideoList = MOBILE_HOST + "/kjy/live/company/video/list";
public static final String MOBILE_VideoGetDetail = MOBILE_HOST + "/kjy/live/company/video/getDetail"; public static final String MOBILE_VideoGetDetail = MOBILE_HOST + "/kjy/live/company/video/getDetail";
public static final String MOBILE_VideoShareInfo = MOBILE_HOST + "/kjy/live/company/video/shareInfo"; public static final String MOBILE_VideoShareInfo = MOBILE_HOST + "/kjy/live/company/video/shareInfo";
...@@ -400,7 +400,12 @@ public class BasicConfig { ...@@ -400,7 +400,12 @@ public class BasicConfig {
public static final String MOBILE_feedbackSave = MOBILE_HOST + "/kjy/live/user/feedback/save"; public static final String MOBILE_feedbackSave = MOBILE_HOST + "/kjy/live/user/feedback/save";
public static final String MOBILE_agentInfo = MOBILE_HOST + "/kjy/live/share/help/agent/info"; public static final String MOBILE_agentInfo = MOBILE_HOST + "/kjy/live/share/help/agent/info";
//直播中线索 //直播前线索
public static final String MOBILE_customerStat = MOBILE_HOST + "/kjy/live/agent/clue/customerStat";
public static final String MOBILE_MyCustomerList = MOBILE_HOST + "/kjy/live/agent/clue/myCustomerList";
public static final String MOBILE_hasInviteAuth = MOBILE_HOST + "/kjy/live/agent/hasInviteAuth";
//直播中线索
public static final String MOBILE_clueList = MOBILE_HOST + "/kjy/live/agent/clue/list"; public static final String MOBILE_clueList = MOBILE_HOST + "/kjy/live/agent/clue/list";
public static final String MOBILE_livingClueStatistic = MOBILE_HOST + "/kjy/live/agent/clue/livingClueStatistic"; public static final String MOBILE_livingClueStatistic = MOBILE_HOST + "/kjy/live/agent/clue/livingClueStatistic";
public static final String MOBILE_hasInviteAuth = MOBILE_HOST + "/kjy/live/agent/hasInviteAuth"; public static final String MOBILE_hasInviteAuth = MOBILE_HOST + "/kjy/live/agent/hasInviteAuth";
......
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