Commit 3a226622 authored by 张艳玲's avatar 张艳玲

新增授权弹窗update

parent fd6c9a1b
......@@ -2119,19 +2119,9 @@ public class SaveLive implements Authorization {
Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey()));
Params.put("popupScene",1);
response = network.getResponse(Params, BasicConfig.MANAGER_popupDetail);
int id = response.jsonPath().getInt("data.id");
int popupScene = response.jsonPath().getInt("data.popupScene");
System.out.println(response.body().asString());
Assert.assertNotNull(id, network.message(Params, BasicConfig.MANAGER_popupDetail, "直播抽奖授权弹窗ID查询为null", response.body().asString()));
//修改配置
Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey()));
Params.put("popupScene",1);
Params.put("id",id);
Params.put("phoneImg","https://yun.dui88.com/kjy/image/20210729/1627545956366.png");
response = network.postResponse(Params, BasicConfig.MANAGER_popupUpdate);
boolean data1 = response.jsonPath().getBoolean("data");
System.out.println(data1);
Assert.assertTrue(data1, network.message(Params, BasicConfig.MANAGER_popupUpdate, "直播抽奖授权弹窗修改失败", response.body().asString()));
Assert.assertTrue(popupScene==1, network.message(Params, BasicConfig.MANAGER_popupDetail, "直播抽奖授权弹窗ID查询为null", response.body().asString()));
}
......@@ -2152,19 +2142,9 @@ public class SaveLive implements Authorization {
Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey()));
Params.put("popupScene", 2);
response = network.getResponse(Params, BasicConfig.MANAGER_popupDetail);
int id = response.jsonPath().getInt("data.id");
int popupScene = response.jsonPath().getInt("data.popupScene");
System.out.println(response.body().asString());
Assert.assertNotNull(id, network.message(Params, BasicConfig.MANAGER_popupDetail, "裂变宝箱授权弹窗ID查询为null", response.body().asString()));
//修改配置
Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey()));
Params.put("popupScene", 2);
Params.put("id", id);
Params.put("phoneImg", "https://yun.dui88.com/kjy/image/20210729/1627547133623.png");
response = network.postResponse(Params, BasicConfig.MANAGER_popupUpdate);
boolean data1 = response.jsonPath().getBoolean("data");
System.out.println(data1);
Assert.assertTrue(data1, network.message(Params, BasicConfig.MANAGER_popupUpdate, "裂变宝箱授权弹窗修改失败", response.body().asString()));
Assert.assertTrue(popupScene==2, network.message(Params, BasicConfig.MANAGER_popupDetail, "裂变宝箱授权弹窗ID查询为null", response.body().asString()));
}
......@@ -2185,20 +2165,9 @@ public class SaveLive implements Authorization {
Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey()));
Params.put("popupScene", 3);
response = network.getResponse(Params, BasicConfig.MANAGER_popupDetail);
int id = response.jsonPath().getInt("data.id");
int popupScene = response.jsonPath().getInt("data.popupScene");
System.out.println(response.body().asString());
Assert.assertNotNull(id, network.message(Params, BasicConfig.MANAGER_popupDetail, "翻牌集字授权弹窗ID查询为null", response.body().asString()));
//修改配置
Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey()));
Params.put("popupScene", 3);
Params.put("id", id);
Params.put("phoneImg", "https://yun.dui88.com/kjy/image/20210729/1627547271114.png");
response = network.postResponse(Params, BasicConfig.MANAGER_popupUpdate);
boolean data1 = response.jsonPath().getBoolean("data");
System.out.println(data1);
Assert.assertTrue(data1, network.message(Params, BasicConfig.MANAGER_popupUpdate, "翻牌集字授权弹窗修改失败", response.body().asString()));
Assert.assertTrue(popupScene==3, network.message(Params, BasicConfig.MANAGER_popupDetail, "翻牌集字授权弹窗ID查询为null", response.body().asString()));
}
......@@ -2219,19 +2188,9 @@ public class SaveLive implements Authorization {
Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey()));
Params.put("popupScene", 4);
response = network.getResponse(Params, BasicConfig.MANAGER_popupDetail);
int id = response.jsonPath().getInt("data.id");
int popupScene = response.jsonPath().getInt("data.popupScene");
System.out.println(response.body().asString());
Assert.assertNotNull(id, network.message(Params, BasicConfig.MANAGER_popupDetail, "手气王授权弹窗ID查询为null", response.body().asString()));
//修改配置
Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey()));
Params.put("popupScene", 4);
Params.put("id", id);
Params.put("phoneImg", "https://yun.dui88.com/kjy/image/20210729/1627547406299.png");
response = network.postResponse(Params, BasicConfig.MANAGER_popupUpdate);
boolean data1 = response.jsonPath().getBoolean("data");
System.out.println(data1);
Assert.assertTrue(data1, network.message(Params, BasicConfig.MANAGER_popupUpdate, "手气王授权弹窗修改失败", response.body().asString()));
Assert.assertTrue(popupScene==4, network.message(Params, BasicConfig.MANAGER_popupDetail, "手气王授权弹窗ID查询为null", response.body().asString()));
}
......@@ -2252,19 +2211,9 @@ public class SaveLive implements Authorization {
Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey()));
Params.put("popupScene",5);
response = network.getResponse(Params, BasicConfig.MANAGER_popupDetail);
int id = response.jsonPath().getInt("data.id");
int popupScene = response.jsonPath().getInt("data.popupScene");
System.out.println(response.body().asString());
Assert.assertNotNull(id, network.message(Params, BasicConfig.MANAGER_popupDetail, "猜数红包授权弹窗ID查询为null", response.body().asString()));
//修改配置
Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey()));
Params.put("popupScene",5);
Params.put("id", id);
Params.put("phoneImg", "https://yun.dui88.com/kjy/image/20210729/1627547406299.png");
response = network.postResponse(Params, BasicConfig.MANAGER_popupUpdate);
boolean data1 = response.jsonPath().getBoolean("data");
System.out.println(data1);
Assert.assertTrue(data1, network.message(Params, BasicConfig.MANAGER_popupUpdate, "猜数红包授权弹窗修改失败", response.body().asString()));
Assert.assertTrue(popupScene==5, network.message(Params, BasicConfig.MANAGER_popupDetail, "猜数红包授权弹窗ID查询为null", response.body().asString()));
}
......@@ -2287,21 +2236,9 @@ public class SaveLive implements Authorization {
Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey()));
Params.put("popupScene",6);
response = network.getResponse(Params, BasicConfig.MANAGER_popupDetail);
int id = response.jsonPath().getInt("data.id");
int popupScene = response.jsonPath().getInt("data.popupScene");
System.out.println(response.body().asString());
Assert.assertNotNull(id, network.message(Params, BasicConfig.MANAGER_popupDetail, "好运红包授权弹窗ID查询为null", response.body().asString()));
//修改配置
Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey()));
Params.put("popupScene",6);
Params.put("id", id);
Params.put("helpImg", "https://yun.dui88.com/kjy/image/20210729/1627547595585.png");
Params.put("phoneImg", "https://yun.dui88.com/kjy/image/20210729/1627547600293.png");
response = network.postResponse(Params, BasicConfig.MANAGER_popupUpdate);
boolean data1 = response.jsonPath().getBoolean("data");
System.out.println(data1);
Assert.assertTrue(data1, network.message(Params, BasicConfig.MANAGER_popupUpdate, "好运红包授权弹窗修改失败", response.body().asString()));
Assert.assertTrue(popupScene==6, network.message(Params, BasicConfig.MANAGER_popupDetail, "好运红包授权弹窗ID查询为null", response.body().asString()));
}
......@@ -2322,21 +2259,9 @@ public class SaveLive implements Authorization {
Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey()));
Params.put("popupScene",7);
response = network.getResponse(Params, BasicConfig.MANAGER_popupDetail);
int id = response.jsonPath().getInt("data.id");
int popupScene = response.jsonPath().getInt("data.popupScene");
System.out.println(response.body().asString());
Assert.assertNotNull(id, network.message(Params, BasicConfig.MANAGER_popupDetail, "闯关答题授权弹窗ID查询为null", response.body().asString()));
//修改配置
Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey()));
Params.put("popupScene",7);
Params.put("id", id);
Params.put("helpImg","https://yun.dui88.com/kjy/image/20210729/1627547737805.png");
Params.put("phoneImg","https://yun.dui88.com/kjy/image/20210729/1627547742368.png");
response = network.postResponse(Params, BasicConfig.MANAGER_popupUpdate);
boolean data1 = response.jsonPath().getBoolean("data");
System.out.println(data1);
Assert.assertTrue(data1, network.message(Params, BasicConfig.MANAGER_popupUpdate, "闯关答题弹窗修改失败", response.body().asString()));
Assert.assertTrue(popupScene==7, network.message(Params, BasicConfig.MANAGER_popupDetail, "闯关答题授权弹窗ID查询为null", response.body().asString()));
}
/**
......
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