Commit 94aa84b0 authored by 张艳玲's avatar 张艳玲

update

parent 227640f7
...@@ -433,142 +433,6 @@ public class Agent implements AdminAuthorization { ...@@ -433,142 +433,6 @@ public class Agent implements AdminAuthorization {
} }
// 获取代理人各线索等级的线索数;
@Test(description="获取线索等级的线索数",priority = 27)
public void 获取线索等级的线索数() {
Map<String, Object> params = new HashMap<String, Object>();
params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
Response response = network.getResponse(params,BasicConfig.MOBILE_ClueNum);
boolean success = response.jsonPath().getBoolean("success");
System.out.println(success);
Assert.assertTrue(success, network.message(params, BasicConfig.MOBILE_ClueNum, "获取线索数失败", response.body().asString()));
}
//获取代理人所有线索数量
public String allNum;
@Test(description="获取所有线索数量",priority = 28)
public void 获取所有线索数量() {
Map<String, Object> params = new HashMap<String, Object>();
params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
Response response = network.getResponse(params,BasicConfig.MOBILE_ClueNum);
allNum = response.jsonPath().getString("data.allNum");
System.out.println(allNum);
Assert.assertNotNull(allNum,network.message(params,BasicConfig.MOBILE_ClueNum,"获取所有线索数量失败",response.body().asString()));
}
//获取观看超过20分钟的人数
public String moreThan20MinNum;
@Test(description="获取观看超过20分钟的人数",priority = 29)
public void 获取观看超过20分钟的人数() {
Map<String, Object> params = new HashMap<String, Object>();
params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
Response response = network.getResponse(params,BasicConfig.MOBILE_ClueNum);
moreThan20MinNum = response.jsonPath().getString("data.moreThan20MinNum");
System.out.println(moreThan20MinNum);
Assert.assertNotNull(moreThan20MinNum,network.message(MOBILE_ClueNum,"获取观看超过20分钟的人数失败",response.body().asString()));
}
// 获取直播中直播结束线索列表;
@Test(description="获取线索列表",priority = 30)
public void 获取线索列表() {
Map<String, Object> params = new HashMap<String, Object>();
params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
params.put("pageIndex",2);
params.put("pageSize",30);
params.put("actionTypeList",20);
Response response = network.getResponse(params,BasicConfig.MOBILE_ClueList);
boolean success = response.jsonPath().getBoolean("success");
List<String> list = response.jsonPath().getList("data.list.name");
System.out.println("-------"+list.size());
for (String name:list){
System.out.println("-------"+list.size());
Assert.assertTrue(success, network.message(params, BasicConfig.MOBILE_ClueList, "获取线索列表失败", response.body().asString()));
Assert.assertNotNull(name,network.message(MOBILE_ClueList,"线索列表微信昵称获取失败",response.body().asString()));
}
}
//直播中我的客户页面
// 获取直播中我的客户页面全部tab;
@Test(description="获取直播中我的客户页面全部tab数据",priority = 31)
public void 获取直播中我的客户页面全部tab数据(){
Map<String, Object> params = new HashMap<String, Object>();
params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
params.put("pageIndex",1);
params.put("pageSize",30);
Response response = network.getResponse(params,BasicConfig.MOBILE_ClueList);
boolean success = response.jsonPath().getBoolean("success");
System.out.println(success);
Assert.assertTrue(success, network.message(params, BasicConfig.MOBILE_ClueList, "获取全部tab下数据失败", response.body().asString()));
}
// 获取直播中我的客户页面观看tab;
@Test(description="获取直播中我的客户页面观看tab数据",priority = 32)
public void 获取直播中我的客户页面观看tab数据() {
Map<String, Object> params = new HashMap<String, Object>();
params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
params.put("pageIndex",1);
params.put("pageSize",30);
params.put("actionTypeList",25);
Response response = network.getResponse(params,BasicConfig.MOBILE_ClueList);
boolean success = response.jsonPath().getBoolean("success");
System.out.println(success);
Assert.assertTrue(success, network.message(params, BasicConfig.MOBILE_ClueList, "获取直播中我的客户页面观看tab数据失败", response.body().asString()));
}
// 获取直播中我的客户页面未观看tab;
@Test(description="获取直播中我的客户页面未观看tab数据",priority = 33)
public void 获取直播中我的客户页面未观看tab数据() {
Map<String, Object> params = new HashMap<String, Object>();
params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
params.put("pageIndex",1);
params.put("pageSize",30);
params.put("actionTypeList",24);
Response response = network.getResponse(params,BasicConfig.MOBILE_ClueList);
boolean success = response.jsonPath().getBoolean("success");
System.out.println(success);
Assert.assertTrue(success, network.message(params, BasicConfig.MOBILE_ClueList, "获取直播中我的客户页面未观看tab数据失败", response.body().asString()));
}
// 获取直播中我的客户页面中奖tab;
@Test(description="获取直播中我的客户页面中奖tab数据",priority = 34)
public void 获取直播中我的客户页面中奖tab数据() {
Map<String, Object> params = new HashMap<String, Object>();
params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
params.put("pageIndex",1);
params.put("pageSize",30);
params.put("actionTypeList",17);
Response response = network.getResponse(params,BasicConfig.MOBILE_ClueList);
boolean success = response.jsonPath().getBoolean("success");
System.out.println(success);
Assert.assertTrue(success, network.message(params, BasicConfig.MOBILE_ClueList, "获取直播中我的客户页面中奖tab数据失败", response.body().asString()));
}
// 获取直播中我的客户页面报名tab;
@Test(description="获取直播中我的客户页面报名tab数据",priority = 35)
public void 获取直播中我的客户页面报名tab数据() {
Map<String, Object> params = new HashMap<String, Object>();
params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
params.put("pageIndex",1);
params.put("pageSize",30);
params.put("actionTypeList",20);
Response response = network.getResponse(params,BasicConfig.MOBILE_ClueList);
boolean success = response.jsonPath().getBoolean("success");
System.out.println(success);
Assert.assertTrue(success, network.message(params, BasicConfig.MOBILE_ClueList, "获取直播中我的客户页面报名tab数据失败", response.body().asString()));
}
} }
......
package com.kjj.cases.live.agent;
import com.kjj.cases.live.admin.AdminAuthorization;
import com.kjj.config.BasicConfig;
import com.kjj.constants.LiveConstants;
import io.restassured.response.Response;
import org.testng.Assert;
import org.testng.annotations.Test;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import static com.kjj.config.BasicConfig.MOBILE_ClueList;
import static com.kjj.config.BasicConfig.MOBILE_ClueNum;
public class LiveAgent implements AdminAuthorization {
/**
* 直播中查看线索
*/
// 获取代理人各线索等级的线索数;
@Test(description="获取线索等级的线索数",priority = 1)
public void 获取线索等级的线索数() {
Map<String, Object> params = new HashMap<String, Object>();
params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
Response response = network.getResponse(params, BasicConfig.MOBILE_ClueNum);
Object data = response.jsonPath().getBoolean("data");
System.out.println(data);
Assert.assertNotNull(data, network.message(params, BasicConfig.MOBILE_ClueNum, "获取线索数失败", response.body().asString()));
}
//获取代理人所有线索数量
public String allNum;
@Test(description="获取所有线索数量",priority = 2)
public void 获取所有线索数量() {
Map<String, Object> params = new HashMap<String, Object>();
params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
Response response = network.getResponse(params,BasicConfig.MOBILE_ClueNum);
allNum = response.jsonPath().getString("data.allNum");
System.out.println(allNum);
Assert.assertNotNull(allNum,network.message(params,BasicConfig.MOBILE_ClueNum,"获取所有线索数量失败",response.body().asString()));
}
//获取观看超过20分钟的人数
public String moreThan20MinNum;
@Test(description="获取观看超过20分钟的人数",priority = 3)
public void 获取观看超过20分钟的人数() {
Map<String, Object> params = new HashMap<String, Object>();
params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
Response response = network.getResponse(params,BasicConfig.MOBILE_ClueNum);
moreThan20MinNum = response.jsonPath().getString("data.moreThan20MinNum");
System.out.println(moreThan20MinNum);
Assert.assertNotNull(moreThan20MinNum,network.message(MOBILE_ClueNum,"获取观看超过20分钟的人数失败",response.body().asString()));
}
// 获取直播中直播结束线索列表;
@Test(description="获取线索列表",priority = 4)
public void 获取线索列表() {
Map<String, Object> params = new HashMap<String, Object>();
params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
params.put("pageIndex",2);
params.put("pageSize",30);
params.put("actionTypeList",20);
Response response = network.getResponse(params,BasicConfig.MOBILE_ClueList);
boolean success = response.jsonPath().getBoolean("success");
List<String> list = response.jsonPath().getList("data.list.name");
System.out.println("-------"+list.size());
for (String name:list){
System.out.println("-------"+list.size());
Assert.assertTrue(success, network.message(params, BasicConfig.MOBILE_ClueList, "获取线索列表失败", response.body().asString()));
Assert.assertNotNull(name,network.message(MOBILE_ClueList,"线索列表微信昵称获取失败",response.body().asString()));
}
}
// 获取直播中我的客户页面全部tab;
@Test(description="获取直播中我的客户页面全部tab数据",priority = 5)
public void 获取直播中我的客户页面全部tab数据(){
Map<String, Object> params = new HashMap<String, Object>();
params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
params.put("pageIndex",1);
params.put("pageSize",30);
Response response = network.getResponse(params,BasicConfig.MOBILE_ClueList);
boolean success = response.jsonPath().getBoolean("success");
System.out.println(success);
Assert.assertTrue(success, network.message(params, BasicConfig.MOBILE_ClueList, "获取全部tab下数据失败", response.body().asString()));
}
// 获取直播中我的客户页面观看tab;
@Test(description="获取直播中我的客户页面观看tab数据",priority = 6)
public void 获取直播中我的客户页面观看tab数据() {
Map<String, Object> params = new HashMap<String, Object>();
params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
params.put("pageIndex",1);
params.put("pageSize",30);
params.put("actionTypeList",25);
Response response = network.getResponse(params,BasicConfig.MOBILE_ClueList);
boolean success = response.jsonPath().getBoolean("success");
System.out.println(success);
Assert.assertTrue(success, network.message(params, BasicConfig.MOBILE_ClueList, "获取直播中我的客户页面观看tab数据失败", response.body().asString()));
}
// 获取直播中我的客户页面未观看tab;
@Test(description="获取直播中我的客户页面未观看tab数据",priority = 7)
public void 获取直播中我的客户页面未观看tab数据() {
Map<String, Object> params = new HashMap<String, Object>();
params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
params.put("pageIndex",1);
params.put("pageSize",30);
params.put("actionTypeList",24);
Response response = network.getResponse(params,BasicConfig.MOBILE_ClueList);
boolean success = response.jsonPath().getBoolean("success");
System.out.println(success);
Assert.assertTrue(success, network.message(params, BasicConfig.MOBILE_ClueList, "获取直播中我的客户页面未观看tab数据失败", response.body().asString()));
}
// 获取直播中我的客户页面中奖tab;
@Test(description="获取直播中我的客户页面中奖tab数据",priority = 8)
public void 获取直播中我的客户页面中奖tab数据() {
Map<String, Object> params = new HashMap<String, Object>();
params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
params.put("pageIndex",1);
params.put("pageSize",30);
params.put("actionTypeList",17);
Response response = network.getResponse(params,BasicConfig.MOBILE_ClueList);
boolean success = response.jsonPath().getBoolean("success");
System.out.println(success);
Assert.assertTrue(success, network.message(params, BasicConfig.MOBILE_ClueList, "获取直播中我的客户页面中奖tab数据失败", response.body().asString()));
}
// 获取直播中我的客户页面报名tab;
@Test(description="获取直播中我的客户页面报名tab数据",priority = 9)
public void 获取直播中我的客户页面报名tab数据() {
Map<String, Object> params = new HashMap<String, Object>();
params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
params.put("pageIndex",1);
params.put("pageSize",30);
params.put("actionTypeList",20);
Response response = network.getResponse(params,BasicConfig.MOBILE_ClueList);
boolean success = response.jsonPath().getBoolean("success");
System.out.println(success);
Assert.assertTrue(success, network.message(params, BasicConfig.MOBILE_ClueList, "获取直播中我的客户页面报名tab数据失败", response.body().asString()));
}
}
...@@ -18,7 +18,7 @@ import java.util.Objects; ...@@ -18,7 +18,7 @@ import java.util.Objects;
public class Lottery implements AdminAuthorization { public class Lottery implements AdminAuthorization {
public List<ConfIdList> List_Confid; public List<ConfIdList> List_ConfId;
public String shareSign; public String shareSign;
@Test(description = "代理人抽奖活动弹层福利列表", priority = 1) @Test(description = "代理人抽奖活动弹层福利列表", priority = 1)
...@@ -40,7 +40,7 @@ public class Lottery implements AdminAuthorization { ...@@ -40,7 +40,7 @@ public class Lottery implements AdminAuthorization {
Response getLiveAwardListRes = network.getResponse(getLiveAwardListParam, BasicConfig.USER_getLiveAwardList); Response getLiveAwardListRes = network.getResponse(getLiveAwardListParam, BasicConfig.USER_getLiveAwardList);
List<ConfIdList> list = JsonUtil.parseResponseToListBean(getLiveAwardListRes, ConfIdList.class); List<ConfIdList> list = JsonUtil.parseResponseToListBean(getLiveAwardListRes, ConfIdList.class);
System.out.println(list); System.out.println(list);
this.List_Confid = list; this.List_ConfId = list;
Assert.assertNotNull(list, network.message(getLiveAwardListParam, BasicConfig.USER_getLiveAwardList, "抽奖标记为false", getLiveAwardListRes.body().asString())); Assert.assertNotNull(list, network.message(getLiveAwardListParam, BasicConfig.USER_getLiveAwardList, "抽奖标记为false", getLiveAwardListRes.body().asString()));
} }
...@@ -84,7 +84,7 @@ public class Lottery implements AdminAuthorization { ...@@ -84,7 +84,7 @@ public class Lottery implements AdminAuthorization {
adminAuth(); adminAuth();
Map<String, Object> startParam = new HashMap<>(); Map<String, Object> startParam = new HashMap<>();
startParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); startParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
startParam.put("confId", this.List_Confid.get(0).getWelfareConfId()); startParam.put("confId", this.List_ConfId.get(0).getWelfareConfId());
Response startRes = network.postResponse(startParam, BasicConfig.ANCHOR_start); Response startRes = network.postResponse(startParam, BasicConfig.ANCHOR_start);
Object data = startRes.jsonPath().getJsonObject("data"); Object data = startRes.jsonPath().getJsonObject("data");
System.out.println(data); System.out.println(data);
...@@ -112,7 +112,7 @@ public class Lottery implements AdminAuthorization { ...@@ -112,7 +112,7 @@ public class Lottery implements AdminAuthorization {
ThreadSleepUtils.sleep(3000); ThreadSleepUtils.sleep(3000);
Map<String, Object> statusParam = new HashMap<>(); Map<String, Object> statusParam = new HashMap<>();
statusParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); statusParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
statusParam.put("confId", this.List_Confid.get(0).getWelfareConfId()); statusParam.put("confId", this.List_ConfId.get(0).getWelfareConfId());
Response statusRes = network.postResponse(statusParam, BasicConfig.ANCHOR_status); Response statusRes = network.postResponse(statusParam, BasicConfig.ANCHOR_status);
boolean data = statusRes.jsonPath().getBoolean("data"); boolean data = statusRes.jsonPath().getBoolean("data");
System.out.println(data); System.out.println(data);
...@@ -125,7 +125,7 @@ public class Lottery implements AdminAuthorization { ...@@ -125,7 +125,7 @@ public class Lottery implements AdminAuthorization {
ThreadSleepUtils.sleep(1000); ThreadSleepUtils.sleep(1000);
Map<String, Object> endParam = new HashMap<>(); Map<String, Object> endParam = new HashMap<>();
endParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); endParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
endParam.put("confId", this.List_Confid.get(0).getWelfareConfId()); endParam.put("confId", this.List_ConfId.get(0).getWelfareConfId());
Response endRes = network.postResponse(endParam, BasicConfig.ANCHOR_end); Response endRes = network.postResponse(endParam, BasicConfig.ANCHOR_end);
Boolean data = endRes.jsonPath().getBoolean("data"); Boolean data = endRes.jsonPath().getBoolean("data");
System.out.println(data); System.out.println(data);
...@@ -151,7 +151,7 @@ public class Lottery implements AdminAuthorization { ...@@ -151,7 +151,7 @@ public class Lottery implements AdminAuthorization {
ThreadSleepUtils.sleep(3000); ThreadSleepUtils.sleep(3000);
Map<String, Object> hasEndParam = new HashMap<>(); Map<String, Object> hasEndParam = new HashMap<>();
hasEndParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); hasEndParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
hasEndParam.put("confId", this.List_Confid.get(0).getWelfareConfId()); hasEndParam.put("confId", this.List_ConfId.get(0).getWelfareConfId());
Response hasEndRes = network.getResponse(hasEndParam, BasicConfig.USER_hasEnd); Response hasEndRes = network.getResponse(hasEndParam, BasicConfig.USER_hasEnd);
Boolean data = hasEndRes.jsonPath().getBoolean("data"); Boolean data = hasEndRes.jsonPath().getBoolean("data");
System.out.println(data); System.out.println(data);
...@@ -165,7 +165,7 @@ public class Lottery implements AdminAuthorization { ...@@ -165,7 +165,7 @@ public class Lottery implements AdminAuthorization {
ThreadSleepUtils.sleep(3000); ThreadSleepUtils.sleep(3000);
Map<String, Object> hasEndParam = new HashMap<>(); Map<String, Object> hasEndParam = new HashMap<>();
hasEndParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); hasEndParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
hasEndParam.put("confId", this.List_Confid.get(0).getWelfareConfId()); hasEndParam.put("confId", this.List_ConfId.get(0).getWelfareConfId());
Response hasEndRes = network.getResponse(hasEndParam, BasicConfig.USER_hasEnd); Response hasEndRes = network.getResponse(hasEndParam, BasicConfig.USER_hasEnd);
Boolean data = hasEndRes.jsonPath().getBoolean("data"); Boolean data = hasEndRes.jsonPath().getBoolean("data");
System.out.println(data); System.out.println(data);
...@@ -178,7 +178,7 @@ public class Lottery implements AdminAuthorization { ...@@ -178,7 +178,7 @@ public class Lottery implements AdminAuthorization {
visitorAuth(); visitorAuth();
ThreadSleepUtils.sleep(3000); ThreadSleepUtils.sleep(3000);
Map<String, Object> hasEndParam = new HashMap<>(); Map<String, Object> hasEndParam = new HashMap<>();
hasEndParam.put("confId", this.List_Confid.get(0).getWelfareConfId()); hasEndParam.put("confId", this.List_ConfId.get(0).getWelfareConfId());
hasEndParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); hasEndParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
Response hasEndRes = network.getResponse(hasEndParam, BasicConfig.USER_result); Response hasEndRes = network.getResponse(hasEndParam, BasicConfig.USER_result);
try { try {
...@@ -195,7 +195,7 @@ public class Lottery implements AdminAuthorization { ...@@ -195,7 +195,7 @@ public class Lottery implements AdminAuthorization {
visitorAuth2(); visitorAuth2();
ThreadSleepUtils.sleep(3000); ThreadSleepUtils.sleep(3000);
Map<String, Object> hasEndParam = new HashMap<>(); Map<String, Object> hasEndParam = new HashMap<>();
hasEndParam.put("confId", this.List_Confid.get(0).getWelfareConfId()); hasEndParam.put("confId", this.List_ConfId.get(0).getWelfareConfId());
hasEndParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); hasEndParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
Response hasEndRes = network.getResponse(hasEndParam, BasicConfig.USER_result); Response hasEndRes = network.getResponse(hasEndParam, BasicConfig.USER_result);
try { try {
...@@ -214,7 +214,7 @@ public class Lottery implements AdminAuthorization { ...@@ -214,7 +214,7 @@ public class Lottery implements AdminAuthorization {
ThreadSleepUtils.sleep(1000); ThreadSleepUtils.sleep(1000);
Map<String, Object> pageListParam = new HashMap<>(); Map<String, Object> pageListParam = new HashMap<>();
pageListParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); pageListParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
pageListParam.put("confId", this.List_Confid.get(0).getWelfareConfId()); pageListParam.put("confId", this.List_ConfId.get(0).getWelfareConfId());
pageListParam.put("pageIndex", 1); pageListParam.put("pageIndex", 1);
pageListParam.put("pageSize", 50); pageListParam.put("pageSize", 50);
Response pageListRes = network.getResponse(pageListParam, BasicConfig.USER_pageList); Response pageListRes = network.getResponse(pageListParam, BasicConfig.USER_pageList);
...@@ -231,7 +231,7 @@ public class Lottery implements AdminAuthorization { ...@@ -231,7 +231,7 @@ public class Lottery implements AdminAuthorization {
ThreadSleepUtils.sleep(1000); ThreadSleepUtils.sleep(1000);
Map<String, Object> allLotteryNameParam = new HashMap<>(); Map<String, Object> allLotteryNameParam = new HashMap<>();
allLotteryNameParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); allLotteryNameParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
allLotteryNameParam.put("confId", this.List_Confid.get(0).getWelfareConfId()); allLotteryNameParam.put("confId", this.List_ConfId.get(0).getWelfareConfId());
Response allLotteryNameRes = network.getResponse(allLotteryNameParam, BasicConfig.USER_allLotteryName); Response allLotteryNameRes = network.getResponse(allLotteryNameParam, BasicConfig.USER_allLotteryName);
Object data = allLotteryNameRes.jsonPath().getJsonObject("data"); Object data = allLotteryNameRes.jsonPath().getJsonObject("data");
System.out.println(data); System.out.println(data);
...@@ -257,7 +257,7 @@ public class Lottery implements AdminAuthorization { ...@@ -257,7 +257,7 @@ public class Lottery implements AdminAuthorization {
visitorAuth(); visitorAuth();
Map<String, Object> submitInfoParam = new HashMap<>(); Map<String, Object> submitInfoParam = new HashMap<>();
submitInfoParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); submitInfoParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
submitInfoParam.put("confId", this.List_Confid.get(0).getWelfareConfId()); submitInfoParam.put("confId", this.List_ConfId.get(0).getWelfareConfId());
submitInfoParam.put("winnerName", "中奖姓名XX"); submitInfoParam.put("winnerName", "中奖姓名XX");
// submitInfoParam.put("region", ""); // submitInfoParam.put("region", "");
// submitInfoParam.put("location", ""); // submitInfoParam.put("location", "");
...@@ -335,7 +335,7 @@ public class Lottery implements AdminAuthorization { ...@@ -335,7 +335,7 @@ public class Lottery implements AdminAuthorization {
assistParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); assistParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
assistParam.put("shareSign",shareSign); assistParam.put("shareSign",shareSign);
assistParam.put("shareType",3); assistParam.put("shareType",3);
assistParam.put("confId",this.List_Confid.get(0).getWelfareConfId()); assistParam.put("confId",this.List_ConfId.get(0).getWelfareConfId());
Response response = network.postResponse(assistParam, BasicConfig.MOBILE_assist); Response response = network.postResponse(assistParam, BasicConfig.MOBILE_assist);
boolean data = response.jsonPath().getBoolean("data"); boolean data = response.jsonPath().getBoolean("data");
System.out.println(data); System.out.println(data);
...@@ -506,7 +506,7 @@ public class Lottery implements AdminAuthorization { ...@@ -506,7 +506,7 @@ public class Lottery implements AdminAuthorization {
assistParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); assistParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
assistParam.put("shareSign",shareSign); assistParam.put("shareSign",shareSign);
assistParam.put("shareType",3); assistParam.put("shareType",3);
assistParam.put("confId",this.List_Confid.get(0).getWelfareConfId()); assistParam.put("confId",this.List_ConfId.get(0).getWelfareConfId());
Response response = network.postResponse(assistParam, BasicConfig.MOBILE_assist); Response response = network.postResponse(assistParam, BasicConfig.MOBILE_assist);
boolean data = response.jsonPath().getBoolean("data"); boolean data = response.jsonPath().getBoolean("data");
System.out.println(data); System.out.println(data);
...@@ -582,7 +582,7 @@ public class Lottery implements AdminAuthorization { ...@@ -582,7 +582,7 @@ public class Lottery implements AdminAuthorization {
assistParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); assistParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
assistParam.put("shareSign",shareSign); assistParam.put("shareSign",shareSign);
assistParam.put("shareType",3); assistParam.put("shareType",3);
assistParam.put("confId",this.List_Confid.get(0).getWelfareConfId()); assistParam.put("confId",this.List_ConfId.get(0).getWelfareConfId());
Response response = network.postResponse(assistParam, BasicConfig.MOBILE_assist); Response response = network.postResponse(assistParam, BasicConfig.MOBILE_assist);
boolean data = response.jsonPath().getBoolean("data"); boolean data = response.jsonPath().getBoolean("data");
System.out.println(data); System.out.println(data);
...@@ -657,7 +657,7 @@ public class Lottery implements AdminAuthorization { ...@@ -657,7 +657,7 @@ public class Lottery implements AdminAuthorization {
assistParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); assistParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
assistParam.put("shareSign",shareSign); assistParam.put("shareSign",shareSign);
assistParam.put("shareType",3); assistParam.put("shareType",3);
assistParam.put("confId",this.List_Confid.get(0).getWelfareConfId()); assistParam.put("confId",this.List_ConfId.get(0).getWelfareConfId());
Response response = network.postResponse(assistParam, BasicConfig.MOBILE_assist); Response response = network.postResponse(assistParam, BasicConfig.MOBILE_assist);
boolean data = response.jsonPath().getBoolean("data"); boolean data = response.jsonPath().getBoolean("data");
System.out.println(data); System.out.println(data);
...@@ -733,7 +733,7 @@ public class Lottery implements AdminAuthorization { ...@@ -733,7 +733,7 @@ public class Lottery implements AdminAuthorization {
assistParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); assistParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
assistParam.put("shareSign",shareSign); assistParam.put("shareSign",shareSign);
assistParam.put("shareType",3); assistParam.put("shareType",3);
assistParam.put("confId",this.List_Confid.get(0).getWelfareConfId()); assistParam.put("confId",this.List_ConfId.get(0).getWelfareConfId());
Response response = network.postResponse(assistParam, BasicConfig.MOBILE_assist); Response response = network.postResponse(assistParam, BasicConfig.MOBILE_assist);
boolean data = response.jsonPath().getBoolean("data"); boolean data = response.jsonPath().getBoolean("data");
System.out.println(data); System.out.println(data);
...@@ -829,7 +829,7 @@ public class Lottery implements AdminAuthorization { ...@@ -829,7 +829,7 @@ public class Lottery implements AdminAuthorization {
ThreadSleepUtils.sleep(1000); ThreadSleepUtils.sleep(1000);
Map<String, Object> startParam = new HashMap<>(); Map<String, Object> startParam = new HashMap<>();
startParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); startParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
startParam.put("confId", this.List_Confid.get(1).getWelfareConfId()); startParam.put("confId", this.List_ConfId.get(1).getWelfareConfId());
Response startRes = network.postResponse(startParam, BasicConfig.ANCHOR_start); Response startRes = network.postResponse(startParam, BasicConfig.ANCHOR_start);
Object data = startRes.jsonPath().getJsonObject("data"); Object data = startRes.jsonPath().getJsonObject("data");
System.out.println(data); System.out.println(data);
...@@ -856,7 +856,7 @@ public class Lottery implements AdminAuthorization { ...@@ -856,7 +856,7 @@ public class Lottery implements AdminAuthorization {
ThreadSleepUtils.sleep(3000); ThreadSleepUtils.sleep(3000);
Map<String, Object> statusParam = new HashMap<>(); Map<String, Object> statusParam = new HashMap<>();
statusParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); statusParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
statusParam.put("confId", this.List_Confid.get(1).getWelfareConfId()); statusParam.put("confId", this.List_ConfId.get(1).getWelfareConfId());
Response statusRes = network.postResponse(statusParam, BasicConfig.ANCHOR_status); Response statusRes = network.postResponse(statusParam, BasicConfig.ANCHOR_status);
boolean data = statusRes.jsonPath().getBoolean("data"); boolean data = statusRes.jsonPath().getBoolean("data");
System.out.println(data); System.out.println(data);
...@@ -868,7 +868,7 @@ public class Lottery implements AdminAuthorization { ...@@ -868,7 +868,7 @@ public class Lottery implements AdminAuthorization {
adminAuth(); adminAuth();
Map<String, Object> endParam = new HashMap<>(); Map<String, Object> endParam = new HashMap<>();
endParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); endParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
endParam.put("confId", this.List_Confid.get(1).getWelfareConfId()); endParam.put("confId", this.List_ConfId.get(1).getWelfareConfId());
Response endRes = network.postResponse(endParam, BasicConfig.ANCHOR_end); Response endRes = network.postResponse(endParam, BasicConfig.ANCHOR_end);
Boolean data = endRes.jsonPath().getBoolean("data"); Boolean data = endRes.jsonPath().getBoolean("data");
System.out.println(data); System.out.println(data);
...@@ -881,7 +881,7 @@ public class Lottery implements AdminAuthorization { ...@@ -881,7 +881,7 @@ public class Lottery implements AdminAuthorization {
visitorAuth3(); visitorAuth3();
ThreadSleepUtils.sleep(3000); ThreadSleepUtils.sleep(3000);
Map<String, Object> hasEndParam = new HashMap<>(); Map<String, Object> hasEndParam = new HashMap<>();
hasEndParam.put("confId", this.List_Confid.get(1).getWelfareConfId()); hasEndParam.put("confId", this.List_ConfId.get(1).getWelfareConfId());
hasEndParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); hasEndParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
Response hasEndRes = network.getResponse(hasEndParam, BasicConfig.USER_result); Response hasEndRes = network.getResponse(hasEndParam, BasicConfig.USER_result);
try { try {
...@@ -900,7 +900,7 @@ public class Lottery implements AdminAuthorization { ...@@ -900,7 +900,7 @@ public class Lottery implements AdminAuthorization {
visitorAuth4(); visitorAuth4();
ThreadSleepUtils.sleep(3000); ThreadSleepUtils.sleep(3000);
Map<String, Object> hasEndParam = new HashMap<>(); Map<String, Object> hasEndParam = new HashMap<>();
hasEndParam.put("confId", this.List_Confid.get(1).getWelfareConfId()); hasEndParam.put("confId", this.List_ConfId.get(1).getWelfareConfId());
hasEndParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); hasEndParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
Response hasEndRes = network.getResponse(hasEndParam, BasicConfig.USER_result); Response hasEndRes = network.getResponse(hasEndParam, BasicConfig.USER_result);
try { try {
...@@ -919,7 +919,7 @@ public class Lottery implements AdminAuthorization { ...@@ -919,7 +919,7 @@ public class Lottery implements AdminAuthorization {
visitorAuth5(); visitorAuth5();
ThreadSleepUtils.sleep(3000); ThreadSleepUtils.sleep(3000);
Map<String, Object> hasEndParam = new HashMap<>(); Map<String, Object> hasEndParam = new HashMap<>();
hasEndParam.put("confId", this.List_Confid.get(1).getWelfareConfId()); hasEndParam.put("confId", this.List_ConfId.get(1).getWelfareConfId());
hasEndParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); hasEndParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
Response hasEndRes = network.getResponse(hasEndParam, BasicConfig.USER_result); Response hasEndRes = network.getResponse(hasEndParam, BasicConfig.USER_result);
try { try {
...@@ -939,7 +939,7 @@ public class Lottery implements AdminAuthorization { ...@@ -939,7 +939,7 @@ public class Lottery implements AdminAuthorization {
visitorAuth6(); visitorAuth6();
ThreadSleepUtils.sleep(3000); ThreadSleepUtils.sleep(3000);
Map<String, Object> hasEndParam = new HashMap<>(); Map<String, Object> hasEndParam = new HashMap<>();
hasEndParam.put("confId", this.List_Confid.get(1).getWelfareConfId()); hasEndParam.put("confId", this.List_ConfId.get(1).getWelfareConfId());
hasEndParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); hasEndParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
Response hasEndRes = network.getResponse(hasEndParam, BasicConfig.USER_result); Response hasEndRes = network.getResponse(hasEndParam, BasicConfig.USER_result);
try { try {
...@@ -958,7 +958,7 @@ public class Lottery implements AdminAuthorization { ...@@ -958,7 +958,7 @@ public class Lottery implements AdminAuthorization {
visitorAuth7(); visitorAuth7();
ThreadSleepUtils.sleep(3000); ThreadSleepUtils.sleep(3000);
Map<String, Object> hasEndParam = new HashMap<>(); Map<String, Object> hasEndParam = new HashMap<>();
hasEndParam.put("confId", this.List_Confid.get(1).getWelfareConfId()); hasEndParam.put("confId", this.List_ConfId.get(1).getWelfareConfId());
hasEndParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); hasEndParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
Response hasEndRes = network.getResponse(hasEndParam, BasicConfig.USER_result); Response hasEndRes = network.getResponse(hasEndParam, BasicConfig.USER_result);
try { try {
...@@ -980,7 +980,7 @@ public class Lottery implements AdminAuthorization { ...@@ -980,7 +980,7 @@ public class Lottery implements AdminAuthorization {
ThreadSleepUtils.sleep(1000); ThreadSleepUtils.sleep(1000);
Map<String, Object> startParam = new HashMap<>(); Map<String, Object> startParam = new HashMap<>();
startParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); startParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
startParam.put("confId", this.List_Confid.get(2).getWelfareConfId()); startParam.put("confId", this.List_ConfId.get(2).getWelfareConfId());
Response startRes = network.postResponse(startParam, BasicConfig.ANCHOR_start); Response startRes = network.postResponse(startParam, BasicConfig.ANCHOR_start);
Object data = startRes.jsonPath().getJsonObject("data"); Object data = startRes.jsonPath().getJsonObject("data");
System.out.println(data); System.out.println(data);
...@@ -1007,7 +1007,7 @@ public class Lottery implements AdminAuthorization { ...@@ -1007,7 +1007,7 @@ public class Lottery implements AdminAuthorization {
ThreadSleepUtils.sleep(3000); ThreadSleepUtils.sleep(3000);
Map<String, Object> statusParam = new HashMap<>(); Map<String, Object> statusParam = new HashMap<>();
statusParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); statusParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
statusParam.put("confId", this.List_Confid.get(2).getWelfareConfId()); statusParam.put("confId", this.List_ConfId.get(2).getWelfareConfId());
Response statusRes = network.postResponse(statusParam, BasicConfig.ANCHOR_status); Response statusRes = network.postResponse(statusParam, BasicConfig.ANCHOR_status);
boolean data = statusRes.jsonPath().getBoolean("data"); boolean data = statusRes.jsonPath().getBoolean("data");
System.out.println(data); System.out.println(data);
...@@ -1019,7 +1019,7 @@ public class Lottery implements AdminAuthorization { ...@@ -1019,7 +1019,7 @@ public class Lottery implements AdminAuthorization {
adminAuth(); adminAuth();
Map<String, Object> endParam = new HashMap<>(); Map<String, Object> endParam = new HashMap<>();
endParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); endParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
endParam.put("confId", this.List_Confid.get(2).getWelfareConfId()); endParam.put("confId", this.List_ConfId.get(2).getWelfareConfId());
Response endRes = network.postResponse(endParam, BasicConfig.ANCHOR_end); Response endRes = network.postResponse(endParam, BasicConfig.ANCHOR_end);
Boolean data = endRes.jsonPath().getBoolean("data"); Boolean data = endRes.jsonPath().getBoolean("data");
System.out.println(data); System.out.println(data);
...@@ -1031,7 +1031,7 @@ public class Lottery implements AdminAuthorization { ...@@ -1031,7 +1031,7 @@ public class Lottery implements AdminAuthorization {
visitorAuth5(); visitorAuth5();
ThreadSleepUtils.sleep(3000); ThreadSleepUtils.sleep(3000);
Map<String, Object> hasEndParam = new HashMap<>(); Map<String, Object> hasEndParam = new HashMap<>();
hasEndParam.put("confId", this.List_Confid.get(2).getWelfareConfId()); hasEndParam.put("confId", this.List_ConfId.get(2).getWelfareConfId());
hasEndParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); hasEndParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
Response hasEndRes = network.getResponse(hasEndParam, BasicConfig.USER_result); Response hasEndRes = network.getResponse(hasEndParam, BasicConfig.USER_result);
try { try {
...@@ -1160,7 +1160,7 @@ public class Lottery implements AdminAuthorization { ...@@ -1160,7 +1160,7 @@ public class Lottery implements AdminAuthorization {
ThreadSleepUtils.sleep(1000); ThreadSleepUtils.sleep(1000);
Map<String, Object> startParam = new HashMap<>(); Map<String, Object> startParam = new HashMap<>();
startParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); startParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
startParam.put("confId", this.List_Confid.get(3).getWelfareConfId()); startParam.put("confId", this.List_ConfId.get(3).getWelfareConfId());
Response startRes = network.postResponse(startParam, BasicConfig.ANCHOR_start); Response startRes = network.postResponse(startParam, BasicConfig.ANCHOR_start);
Object data = startRes.jsonPath().getJsonObject("data"); Object data = startRes.jsonPath().getJsonObject("data");
System.out.println(data); System.out.println(data);
...@@ -1187,7 +1187,7 @@ public class Lottery implements AdminAuthorization { ...@@ -1187,7 +1187,7 @@ public class Lottery implements AdminAuthorization {
ThreadSleepUtils.sleep(3000); ThreadSleepUtils.sleep(3000);
Map<String, Object> statusParam = new HashMap<>(); Map<String, Object> statusParam = new HashMap<>();
statusParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); statusParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
statusParam.put("confId", this.List_Confid.get(3).getWelfareConfId()); statusParam.put("confId", this.List_ConfId.get(3).getWelfareConfId());
Response statusRes = network.postResponse(statusParam, BasicConfig.ANCHOR_status); Response statusRes = network.postResponse(statusParam, BasicConfig.ANCHOR_status);
boolean data = statusRes.jsonPath().getBoolean("data"); boolean data = statusRes.jsonPath().getBoolean("data");
System.out.println(data); System.out.println(data);
...@@ -1199,7 +1199,7 @@ public class Lottery implements AdminAuthorization { ...@@ -1199,7 +1199,7 @@ public class Lottery implements AdminAuthorization {
adminAuth(); adminAuth();
Map<String, Object> endParam = new HashMap<>(); Map<String, Object> endParam = new HashMap<>();
endParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); endParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
endParam.put("confId", this.List_Confid.get(3).getWelfareConfId()); endParam.put("confId", this.List_ConfId.get(3).getWelfareConfId());
Response endRes = network.postResponse(endParam, BasicConfig.ANCHOR_end); Response endRes = network.postResponse(endParam, BasicConfig.ANCHOR_end);
Boolean data = endRes.jsonPath().getBoolean("data"); Boolean data = endRes.jsonPath().getBoolean("data");
System.out.println(data); System.out.println(data);
...@@ -1213,7 +1213,7 @@ public class Lottery implements AdminAuthorization { ...@@ -1213,7 +1213,7 @@ public class Lottery implements AdminAuthorization {
visitorAuth5(); visitorAuth5();
ThreadSleepUtils.sleep(3000); ThreadSleepUtils.sleep(3000);
Map<String, Object> hasEndParam = new HashMap<>(); Map<String, Object> hasEndParam = new HashMap<>();
hasEndParam.put("confId", this.List_Confid.get(3).getWelfareConfId()); hasEndParam.put("confId", this.List_ConfId.get(3).getWelfareConfId());
hasEndParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); hasEndParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
Response hasEndRes = network.getResponse(hasEndParam, BasicConfig.USER_result); Response hasEndRes = network.getResponse(hasEndParam, BasicConfig.USER_result);
try { try {
...@@ -1231,7 +1231,7 @@ public class Lottery implements AdminAuthorization { ...@@ -1231,7 +1231,7 @@ public class Lottery implements AdminAuthorization {
ThreadSleepUtils.sleep(3000); ThreadSleepUtils.sleep(3000);
//构建参数 //构建参数
Map<String, Object> hasEndParam = new HashMap<>(); Map<String, Object> hasEndParam = new HashMap<>();
hasEndParam.put("confId", this.List_Confid.get(3).getWelfareConfId()); hasEndParam.put("confId", this.List_ConfId.get(3).getWelfareConfId());
hasEndParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); hasEndParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
//用户A //用户A
visitorAuth9(); visitorAuth9();
...@@ -1266,7 +1266,7 @@ public class Lottery implements AdminAuthorization { ...@@ -1266,7 +1266,7 @@ public class Lottery implements AdminAuthorization {
visitorAuth6(); visitorAuth6();
ThreadSleepUtils.sleep(3000); ThreadSleepUtils.sleep(3000);
Map<String, Object> hasEndParam = new HashMap<>(); Map<String, Object> hasEndParam = new HashMap<>();
hasEndParam.put("confId", this.List_Confid.get(3).getWelfareConfId()); hasEndParam.put("confId", this.List_ConfId.get(3).getWelfareConfId());
hasEndParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); hasEndParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
Response hasEndRes = network.getResponse(hasEndParam, BasicConfig.USER_result); Response hasEndRes = network.getResponse(hasEndParam, BasicConfig.USER_result);
try { try {
...@@ -1285,7 +1285,7 @@ public class Lottery implements AdminAuthorization { ...@@ -1285,7 +1285,7 @@ public class Lottery implements AdminAuthorization {
visitorAuth8(); visitorAuth8();
ThreadSleepUtils.sleep(3000); ThreadSleepUtils.sleep(3000);
Map<String, Object> hasEndParam = new HashMap<>(); Map<String, Object> hasEndParam = new HashMap<>();
hasEndParam.put("confId", this.List_Confid.get(3).getWelfareConfId()); hasEndParam.put("confId", this.List_ConfId.get(3).getWelfareConfId());
hasEndParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); hasEndParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
Response hasEndRes = network.getResponse(hasEndParam, BasicConfig.USER_result); Response hasEndRes = network.getResponse(hasEndParam, BasicConfig.USER_result);
try { try {
...@@ -1304,7 +1304,7 @@ public class Lottery implements AdminAuthorization { ...@@ -1304,7 +1304,7 @@ public class Lottery implements AdminAuthorization {
ThreadSleepUtils.sleep(1000); ThreadSleepUtils.sleep(1000);
Map<String, Object> startParam = new HashMap<>(); Map<String, Object> startParam = new HashMap<>();
startParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); startParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
startParam.put("confId", this.List_Confid.get(4).getWelfareConfId()); startParam.put("confId", this.List_ConfId.get(4).getWelfareConfId());
Response startRes = network.postResponse(startParam, BasicConfig.ANCHOR_start); Response startRes = network.postResponse(startParam, BasicConfig.ANCHOR_start);
Object data = startRes.jsonPath().getJsonObject("data"); Object data = startRes.jsonPath().getJsonObject("data");
System.out.println(data); System.out.println(data);
...@@ -1331,7 +1331,7 @@ public class Lottery implements AdminAuthorization { ...@@ -1331,7 +1331,7 @@ public class Lottery implements AdminAuthorization {
ThreadSleepUtils.sleep(3000); ThreadSleepUtils.sleep(3000);
Map<String, Object> statusParam = new HashMap<>(); Map<String, Object> statusParam = new HashMap<>();
statusParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); statusParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
statusParam.put("confId", this.List_Confid.get(4).getWelfareConfId()); statusParam.put("confId", this.List_ConfId.get(4).getWelfareConfId());
Response statusRes = network.postResponse(statusParam, BasicConfig.ANCHOR_status); Response statusRes = network.postResponse(statusParam, BasicConfig.ANCHOR_status);
boolean data = statusRes.jsonPath().getBoolean("data"); boolean data = statusRes.jsonPath().getBoolean("data");
System.out.println(data); System.out.println(data);
...@@ -1343,7 +1343,7 @@ public class Lottery implements AdminAuthorization { ...@@ -1343,7 +1343,7 @@ public class Lottery implements AdminAuthorization {
adminAuth(); adminAuth();
Map<String, Object> endParam = new HashMap<>(); Map<String, Object> endParam = new HashMap<>();
endParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); endParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
endParam.put("confId", this.List_Confid.get(4).getWelfareConfId()); endParam.put("confId", this.List_ConfId.get(4).getWelfareConfId());
Response endRes = network.postResponse(endParam, BasicConfig.ANCHOR_end); Response endRes = network.postResponse(endParam, BasicConfig.ANCHOR_end);
Boolean data = endRes.jsonPath().getBoolean("data"); Boolean data = endRes.jsonPath().getBoolean("data");
System.out.println(data); System.out.println(data);
...@@ -1357,7 +1357,7 @@ public class Lottery implements AdminAuthorization { ...@@ -1357,7 +1357,7 @@ public class Lottery implements AdminAuthorization {
ThreadSleepUtils.sleep(3000); ThreadSleepUtils.sleep(3000);
//构建参数 //构建参数
Map<String, Object> hasEndParam = new HashMap<>(); Map<String, Object> hasEndParam = new HashMap<>();
hasEndParam.put("confId", this.List_Confid.get(4).getWelfareConfId()); hasEndParam.put("confId", this.List_ConfId.get(4).getWelfareConfId());
hasEndParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); hasEndParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
//用户A //用户A
visitorAuth9(); visitorAuth9();
......
...@@ -61,7 +61,7 @@ public class BasicConfig { ...@@ -61,7 +61,7 @@ public class BasicConfig {
//*********************************************************************** //***********************************************************************
// 基础线代理人 TKU // 基础线代理人 TKU,ID:
public static String AGENT_TKU = "T3gM31f18jCFEcfoYxvVk1LsF5T1YkcBNDbUaryi3TgvwatuP6mroJjZ2k7iCHjC9Srujh7k311i3vFuZm"; public static String AGENT_TKU = "T3gM31f18jCFEcfoYxvVk1LsF5T1YkcBNDbUaryi3TgvwatuP6mroJjZ2k7iCHjC9Srujh7k311i3vFuZm";
// 基础线访客 TKU // 基础线访客 TKU
public static String VISITOR_TKU = "T3gM31f18jCGvqvoyJRzyMTdpcPDJWUJJP4VQje7p9sfHcRNmyhTEzEbfmwrGFy5doVEinb1k3SVwreYQE"; public static String VISITOR_TKU = "T3gM31f18jCGvqvoyJRzyMTdpcPDJWUJJP4VQje7p9sfHcRNmyhTEzEbfmwrGFy5doVEinb1k3SVwreYQE";
...@@ -192,7 +192,7 @@ public class BasicConfig { ...@@ -192,7 +192,7 @@ public class BasicConfig {
public static final String MOBILE_agentSpecifyAwardConf = MOBILE_HOST + "/kjy/live/agent/agentSpecifyAwardConf"; public static final String MOBILE_agentSpecifyAwardConf = MOBILE_HOST + "/kjy/live/agent/agentSpecifyAwardConf";
// *************** 直播中抽奖 *************** // *************** 直播中抽奖 ***************
public static final String USER_getLiveAwardList = MOBILE_HOST + "/kjy/live/conf/specifyAward/getLiveAwardList"; public static final String USER_getLiveAwardList = MOBILE_HOST + "/conf/pre/specifyAward/getLiveAwardList";
public static final String USER_listLiveLottery = MOBILE_HOST + "/kjy/live/lottery/listLiveLottery"; public static final String USER_listLiveLottery = MOBILE_HOST + "/kjy/live/lottery/listLiveLottery";
public static final String USER_pageList = MOBILE_HOST + "/clue/lottery/pageList"; public static final String USER_pageList = MOBILE_HOST + "/clue/lottery/pageList";
public static final String USER_result = MOBILE_HOST + "/clue/lottery/result"; public static final String USER_result = MOBILE_HOST + "/clue/lottery/result";
......
...@@ -49,7 +49,6 @@ ...@@ -49,7 +49,6 @@
</classes> </classes>
</test> </test>
<test preserve-order="true" name="中奖规则配置"> <test preserve-order="true" name="中奖规则配置">
<classes> <classes>
<class name="com.kjj.cases.live.liveConfig.WinningRules"/> <class name="com.kjj.cases.live.liveConfig.WinningRules"/>
...@@ -112,11 +111,6 @@ ...@@ -112,11 +111,6 @@
<class name="com.kjj.cases.live.anchor.LiveVisitors"/> <class name="com.kjj.cases.live.anchor.LiveVisitors"/>
</classes> </classes>
</test> </test>
<!-- <test preserve-order="true" name="获取代理人排行榜及客户信息">-->
<!-- <classes>-->
<!-- <class name="com.kjj.cases.live.agent.LiveAgent"/>-->
<!-- </classes>-->
<!-- </test>-->
<test preserve-order="true" name="红包领取"> <test preserve-order="true" name="红包领取">
<classes> <classes>
...@@ -148,6 +142,12 @@ ...@@ -148,6 +142,12 @@
</classes> </classes>
</test> </test>
<test preserve-order="true" name="直播中获取线索统计">
<classes>
<class name="com.kjj.cases.live.agent.LiveAgent"/>
</classes>
</test>
<test preserve-order="true" name="助播-结束直播"> <test preserve-order="true" name="助播-结束直播">
<classes> <classes>
<class name="com.kjj.cases.live.anchor.CloseLive"/> <class name="com.kjj.cases.live.anchor.CloseLive"/>
......
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