Commit 17b72828 authored by 郭姣's avatar 郭姣

增加代理人指定中奖开关

parent b80f3a30
...@@ -18,6 +18,7 @@ public class DesignatedWinner implements Authorization { ...@@ -18,6 +18,7 @@ public class DesignatedWinner implements Authorization {
public List<LotteryList.List_Lottery> List_Lottery; public List<LotteryList.List_Lottery> List_Lottery;
public List<LotteryList> welfareId; public List<LotteryList> welfareId;
public long data;
@Test(description = "直播前获取权益列表", priority = 1) @Test(description = "直播前获取权益列表", priority = 1)
public void 直播前获取权益列表() { public void 直播前获取权益列表() {
...@@ -215,6 +216,36 @@ public class DesignatedWinner implements Authorization { ...@@ -215,6 +216,36 @@ public class DesignatedWinner implements Authorization {
Assert.assertNotNull(data, network.message(addParam, BasicConfig.MANAGER_confSwitchStatus, "开启指定中奖配置失败", addRes.body().asString())); Assert.assertNotNull(data, network.message(addParam, BasicConfig.MANAGER_confSwitchStatus, "开启指定中奖配置失败", addRes.body().asString()));
} }
@Test(description = "查看指定中奖状态",priority = 14)
public void 查看指定中奖状态(){
Map<String, Object> addParam = new HashMap<>();
addParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey()));
Response addRes = network.postResponse(addParam, BasicConfig.MANAGER_getConfDetail);
boolean specifyAwardSwitchStatus = addRes.jsonPath().getBoolean("data.specifyAwardSwitchStatus");
Assert.assertTrue(specifyAwardSwitchStatus, network.message(addParam,BasicConfig.MANAGER_getConfDetail,"指定中奖配置记录失败",addRes.body().asString()));
}
@Test(description = "上传可指定中奖代理人名单",priority = 15)
public void 上传可指定中奖代理人名单(){
Map<String, Object> addParam = new HashMap<>();
addParam.put("bizId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey()));
addParam.put("excelUrl","https://yun.dui88.com/kjy/media/file/20211108/8b22482d56479ac5d65090472df788a8.xlsx");
addParam.put("fileName","自动化代理人指定中奖名单.xlsx");
Response addRes = network.postResponse(addParam,BasicConfig.MANAGER_confImport);
boolean success = addRes.jsonPath().getBoolean("success");
data = addRes.jsonPath().getLong("data");
Assert.assertTrue(success, network.message(addParam,BasicConfig.MANAGER_confImport,"上传可指定中奖代理人名单失败",addRes.body().asString()));
}
@Test(description = "上传任务结果",priority = 16)
public void 上传任务结果(){
Map<String,Object> addParam = new HashMap<>();
addParam.put("taskId",data);
Response addRes = network.postResponse(addParam,BasicConfig.MANAGER_result);
boolean success = addRes.jsonPath().getBoolean("success");
Assert.assertTrue(success, network.message(addParam,BasicConfig.MANAGER_result,"上传任务结果正确",addRes.body().asString()));
}
@Test(description = "根据直播间id查询指定中奖配置", priority = 14) @Test(description = "根据直播间id查询指定中奖配置", priority = 14)
public void 根据直播间id查询指定中奖配置() { public void 根据直播间id查询指定中奖配置() {
......
...@@ -387,7 +387,7 @@ public class BasicConfig { ...@@ -387,7 +387,7 @@ public class BasicConfig {
public static final String MOBILE_agentSpecifyAwardInfo = MOBILE_HOST + "/kjy/live/agent/agentSpecifyAwardInfo"; public static final String MOBILE_agentSpecifyAwardInfo = MOBILE_HOST + "/kjy/live/agent/agentSpecifyAwardInfo";
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 MANAGER_confSwitchStatus = MANAGER_HOST + "/kjy/manager/specifyAward/pre/conf/switchStatus"; public static final String MANAGER_confSwitchStatus = MANAGER_HOST + "/kjy/manager/specifyAward/pre/conf/switchStatus";
public static final String MANAGER_confImport = MANAGER_HOST + "/kjy/manager/specifyAward/pre/conf/import";
// *************** 直播中抽奖 *************** // *************** 直播中抽奖 ***************
public static final String USER_getLiveAwardList = MOBILE_HOST + "/conf/pre/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";
......
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