Commit 005de728 authored by 郭姣's avatar 郭姣

增加代理人指定中奖开关

parent 84041ed2
...@@ -205,9 +205,18 @@ public class DesignatedWinner implements Authorization { ...@@ -205,9 +205,18 @@ public class DesignatedWinner implements Authorization {
} }
@Test(description = "开启指定中奖配置", priority = 13)
public void 开启指定中奖配置() {
Map<String, Object> addParam = new HashMap<>();
addParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey()));
addParam.put("confStatus",1);
Response addRes = network.postResponse(addParam, BasicConfig.MANAGER_confSwitchStatus);
Object data = addRes.jsonPath().getJsonObject("data");
Assert.assertNotNull(data, network.message(addParam, BasicConfig.MANAGER_confSwitchStatus, "开启指定中奖配置失败", addRes.body().asString()));
}
@Test(description = "根据直播间id查询指定中奖配置", priority = 13) @Test(description = "根据直播间id查询指定中奖配置", priority = 14)
public void 根据直播间id查询指定中奖配置() { public void 根据直播间id查询指定中奖配置() {
adminAuth(); adminAuth();
Map<String, Object> SpecifyAwardConfParam = new HashMap<>(); Map<String, Object> SpecifyAwardConfParam = new HashMap<>();
...@@ -218,7 +227,7 @@ public class DesignatedWinner implements Authorization { ...@@ -218,7 +227,7 @@ public class DesignatedWinner implements Authorization {
Assert.assertNotNull(data, network.message(SpecifyAwardConfParam, BasicConfig.MOBILE_getSpecifyAwardConf, "根据直播间id查询指定中奖配置失败", SpecifyAwardConfRes.body().asString())); Assert.assertNotNull(data, network.message(SpecifyAwardConfParam, BasicConfig.MOBILE_getSpecifyAwardConf, "根据直播间id查询指定中奖配置失败", SpecifyAwardConfRes.body().asString()));
} }
@Test(description = "根据直播间id查询代理人参与条件", priority = 14) @Test(description = "根据直播间id查询代理人参与条件", priority = 15)
public void 根据直播间id查询代理人参与条件() { public void 根据直播间id查询代理人参与条件() {
adminAuth(); adminAuth();
Map<String, Object> AgentParticipateCondParam = new HashMap<>(); Map<String, Object> AgentParticipateCondParam = new HashMap<>();
...@@ -229,7 +238,7 @@ public class DesignatedWinner implements Authorization { ...@@ -229,7 +238,7 @@ public class DesignatedWinner implements Authorization {
Assert.assertNotNull(data, network.message(AgentParticipateCondParam, BasicConfig.MOBILE_getAgentParticipateCond, "根据直播间id查询代理人参与条件失败", AgentParticipateCondRes.body().asString())); Assert.assertNotNull(data, network.message(AgentParticipateCondParam, BasicConfig.MOBILE_getAgentParticipateCond, "根据直播间id查询代理人参与条件失败", AgentParticipateCondRes.body().asString()));
} }
@Test(description = "根据直播id查询抽奖奖品列表", priority = 15) @Test(description = "根据直播id查询抽奖奖品列表", priority = 16)
public void 根据直播id查询抽奖奖品列表() { public void 根据直播id查询抽奖奖品列表() {
adminAuth(); adminAuth();
Map<String, Object> LiveAwardListParam = new HashMap<>(); Map<String, Object> LiveAwardListParam = new HashMap<>();
...@@ -240,7 +249,7 @@ public class DesignatedWinner implements Authorization { ...@@ -240,7 +249,7 @@ public class DesignatedWinner implements Authorization {
Assert.assertNotNull(data, network.message(LiveAwardListParam, BasicConfig.MOBILE_getLiveAwardList, "根据直播id查询抽奖奖品列表失败", LiveAwardListRes.body().asString())); Assert.assertNotNull(data, network.message(LiveAwardListParam, BasicConfig.MOBILE_getLiveAwardList, "根据直播id查询抽奖奖品列表失败", LiveAwardListRes.body().asString()));
} }
@Test(description = "获取直播状态", priority = 16) @Test(description = "获取直播状态", priority = 17)
public void 获取直播状态() { public void 获取直播状态() {
agentAuth(); agentAuth();
Map<String, Object> statusParam = new HashMap<>(); Map<String, Object> statusParam = new HashMap<>();
...@@ -254,7 +263,7 @@ public class DesignatedWinner implements Authorization { ...@@ -254,7 +263,7 @@ public class DesignatedWinner implements Authorization {
Assert.assertTrue(lotteryFlag, network.message(statusParam, BasicConfig.MOBILE_status1, "抽奖标记为false", statusRes.body().asString())); Assert.assertTrue(lotteryFlag, network.message(statusParam, BasicConfig.MOBILE_status1, "抽奖标记为false", statusRes.body().asString()));
} }
@Test(description = "查询指定中奖配置", priority = 17) @Test(description = "查询指定中奖配置", priority = 18)
public void 查询指定中奖配置() { public void 查询指定中奖配置() {
agentAuth(); agentAuth();
Map<String, Object> awardConfParam = new HashMap<>(); Map<String, Object> awardConfParam = new HashMap<>();
...@@ -265,7 +274,7 @@ public class DesignatedWinner implements Authorization { ...@@ -265,7 +274,7 @@ public class DesignatedWinner implements Authorization {
Assert.assertNotNull(data, network.message(awardConfParam, BasicConfig.MOBILE_AgentSpecifyAwardConf, "中奖配置查询失败", awardConfRes.body().asString())); Assert.assertNotNull(data, network.message(awardConfParam, BasicConfig.MOBILE_AgentSpecifyAwardConf, "中奖配置查询失败", awardConfRes.body().asString()));
} }
@Test(description = "查询指定中奖用户列表", priority = 18) @Test(description = "查询指定中奖用户列表", priority = 19)
public void 查询指定中奖用户列表() { public void 查询指定中奖用户列表() {
agentAuth(); agentAuth();
Map<String, Object> UserSelectListParam = new HashMap<>(); Map<String, Object> UserSelectListParam = new HashMap<>();
...@@ -278,7 +287,7 @@ public class DesignatedWinner implements Authorization { ...@@ -278,7 +287,7 @@ public class DesignatedWinner implements Authorization {
} }
@Test(description = "代理人指定访客中奖表单提交", priority = 19) @Test(description = "代理人指定访客中奖表单提交", priority = 20)
public void 代理人指定访客A中奖表单提交() { public void 代理人指定访客A中奖表单提交() {
Map<String, Object> SubmitParam = new HashMap<>(); Map<String, Object> SubmitParam = new HashMap<>();
SubmitParam.put("liveId",LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); SubmitParam.put("liveId",LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
...@@ -291,7 +300,7 @@ public class DesignatedWinner implements Authorization { ...@@ -291,7 +300,7 @@ public class DesignatedWinner implements Authorization {
} }
@Test(description = "被代理人指定中奖的用户列表", priority = 20) @Test(description = "被代理人指定中奖的用户列表", priority = 21)
public void 被代理人指定中奖的用户列表() { public void 被代理人指定中奖的用户列表() {
agentAuth(); agentAuth();
Map<String, Object> AwardUserListParam = new HashMap<>(); Map<String, Object> AwardUserListParam = new HashMap<>();
...@@ -303,7 +312,7 @@ public class DesignatedWinner implements Authorization { ...@@ -303,7 +312,7 @@ public class DesignatedWinner implements Authorization {
} }
@Test(description = "代理人指定中奖信息查询", priority = 21) @Test(description = "代理人指定中奖信息查询", priority = 22)
public void 代理人指定中奖信息查询() { public void 代理人指定中奖信息查询() {
agentAuth(); agentAuth();
Map<String, Object> AwardInfoParam = new HashMap<>(); Map<String, Object> AwardInfoParam = new HashMap<>();
...@@ -318,7 +327,7 @@ public class DesignatedWinner implements Authorization { ...@@ -318,7 +327,7 @@ public class DesignatedWinner implements Authorization {
} }
@Test(description = "代理人指定中奖配置查询", priority = 22) @Test(description = "代理人指定中奖配置查询", priority = 23)
public void 代理人指定中奖配置查询() { public void 代理人指定中奖配置查询() {
agentAuth(); agentAuth();
Map<String, Object> AwardConfParam = new HashMap<>(); Map<String, Object> AwardConfParam = new HashMap<>();
......
...@@ -386,6 +386,7 @@ public class BasicConfig { ...@@ -386,6 +386,7 @@ public class BasicConfig {
public static final String MOBILE_agentSpecifyAwardUserList = MOBILE_HOST + "/kjy/live/agent/agentSpecifyAwardUserList"; public static final String MOBILE_agentSpecifyAwardUserList = MOBILE_HOST + "/kjy/live/agent/agentSpecifyAwardUserList";
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 USER_getLiveAwardList = MOBILE_HOST + "/conf/pre/specifyAward/getLiveAwardList"; public static final String USER_getLiveAwardList = MOBILE_HOST + "/conf/pre/specifyAward/getLiveAwardList";
......
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