Commit 564cb7a8 authored by 龚小红's avatar 龚小红

增加砸金蛋玩法

parent c69e1157
......@@ -17,6 +17,4 @@ public class TreasureAward {
private Integer winLimitCount;
private Integer isLimit;
}
......@@ -62,7 +62,7 @@ public class SimpleLiveConfig implements Authorization {
Params.put("regionType",2);
Params.put("preAwardUrl","https://yun.dui88.com/kjy/image/20210629/1624949155842.png");
Params.put("preWindowUrl","https://yun.dui88.com/kjy/image/20210629/1624949098093.png");
Params.put("distributionType", 0);
Params.put("distributionType", 1);
Params.put("existSeriesPoster", 0);
List<ProvinceCityCodeList> provinceCityCode = new ArrayList<>();
ProvinceCityCodeList save = new ProvinceCityCodeList();
......@@ -148,4 +148,21 @@ public class SimpleLiveConfig implements Authorization {
System.out.println(response.body().asString());
Assert.assertTrue(data, network.message(Params, BasicConfig.MANAGER_saveAndUpdate_8, "产品资料配置失败", response.body().asString()));
}
/**
* 直播中奖品
*/
//直播中奖品配置
@Test(description = "直播中抽奖", priority = 9)
public void 直播中抽奖() {
Map<String, Object> Params = new HashMap<>();
Params.put("liveId", liveID);
Params.put("interactNum", 1);
Params.put("showInteractNum", 1);
Params.put("welfareId", 191);
Params.put("afterMin", 20);
Response response = network.postResponse(Params, BasicConfig.MANAGER_add_1);
boolean data = response.jsonPath().getBoolean("data");
System.out.println(data);
Assert.assertTrue(data, network.message(Params, BasicConfig.MANAGER_add_1, "直播中抽奖配置失败", response.body().asString()));
}
}
......@@ -272,7 +272,12 @@ public class BasicConfig {
public static final String MANAGER_videoSwitch = MANAGER_HOST + "/kjy/manager/live/trans/video/conf/status/switch";
public static final String MANAGER_videoDetail = MANAGER_HOST + "/kjy/manager/live/trans/video/conf/detail";
// *************** 新版预告页 ***************
// *************** 砸金蛋 ***************
public static final String MANAGER_goldenEgg_saveOrUpdate = MANAGER_HOST +"/kjy/manager/live/treasure/goldenEgg/saveOrUpdate";
public static final String MANAGER_goldenEgg_detail = MANAGER_HOST +"/kjy/manager/live/treasure/goldenEgg/detail";
public static final String MANAGER_goldenEgg_switchStatus = MANAGER_HOST +"/kjy/manager/live/treasure/goldenEgg/switchStatus";
public static final String MOBILE_goldenEgg_detail = MOBILE_HOST +"/kjy/live/treasure/goldenEgg/detail";
public static final String MOBILE_goldenEgg_open = MOBILE_HOST +"/kjy/live/treasure/goldenEgg/open";
// *************** 猜数字红包 ***************
......
This diff is collapsed.
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