Commit 0b2dc407 authored by 张艳玲's avatar 张艳玲

update

parent 4fef44f3
......@@ -53,7 +53,9 @@ public class SaveLive implements AdminAuthorization {
Params.put("shareContent", "自动化直播");
Params.put("shelfStatus", 2);
Params.put("secondPoster", "https://streamimg.kjjcrm.com/kjy/image/20210201/cc999ebde48e49f99ac3f0d93480453f.jpg");
Params.put("regionType", 2);
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("existSeriesPoster", 0);
List<ProvinceCityCodeList> provinceCityCode = new ArrayList<>();
......@@ -1736,4 +1738,5 @@ public class SaveLive implements AdminAuthorization {
}
......@@ -19,27 +19,42 @@ public class Share implements AdminAuthorization {
}
@Test(description = "新增常规小程序分享", priority = 1)
public void 新增常规小程序分享() {
@Test(description = "直播前_常规分享", priority = 1)
public void 直播前_常规分享() {
Map<String, Object> Params = new HashMap<>();
Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey()));
Params.put("mpShareUrl", "//yun.dui88.com/kjy/image/20210526/1622022856685.jpeg");
Params.put("mpShareTitle", "{{welfareName}}」常规分享文案{{name}}");
Params.put("mpShareTitle", "直播前常规分享文案{{name}}");
Params.put("shareType", 7);
Response response = network.postResponse(Params, BasicConfig.MANAGER_saveOrUpdateMpShare);
boolean data =response.jsonPath().getBoolean("data");
System.out.println(data);
Assert.assertTrue(data,network.message(Params, BasicConfig.MOBILE_info, "直播前_常规分享添加失败", response.body().asString()));
}
@Test(description = "直播中_常规分享", priority = 2)
public void 直播中_常规分享() {
Map<String, Object> Params = new HashMap<>();
Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey()));
Params.put("mpShareUrl", "//yun.dui88.com/kjy/image/20210526/1622022856685.jpeg");
Params.put("mpShareTitle", "直播前常规分享文案{{name}}");
Params.put("shareType", 1);
Response response = network.postResponse(Params, BasicConfig.MANAGER_saveOrUpdateMpShare);
boolean data =response.jsonPath().getBoolean("data");
System.out.println(data);
Assert.assertTrue(data,network.message(Params, BasicConfig.MOBILE_info, "新增常规小程序分享失败", response.body().asString()));
Assert.assertTrue(data,network.message(Params, BasicConfig.MOBILE_info, "直播中_常规分享添加失败", response.body().asString()));
}
@Test(description = "新增红包小程序分享", priority = 2)
@Test(description = "新增红包小程序分享", priority = 3)
public void 新增红包宝箱小程序分享() {
Map<String, Object> Params = new HashMap<>();
Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey()));
Params.put("mpShareUrl", "//yun.dui88.com/kjy/image/20210526/1622022856685.jpeg");
Params.put("mpShareTitle", "「{{welfareName}}」红包分享文案{{name}}");
Params.put("mpShareTitle", "红包分享文案{{name}}");
Params.put("shareType", 2);
Response response = network.postResponse(Params, BasicConfig.MANAGER_saveOrUpdateMpShare);
boolean data =response.jsonPath().getBoolean("data");
......@@ -50,12 +65,12 @@ public class Share implements AdminAuthorization {
}
@Test(description = "新增直播宝箱小程序分享", priority = 3)
@Test(description = "新增直播宝箱小程序分享", priority = 4)
public void 新增直播宝箱小程序分享() {
Map<String, Object> Params = new HashMap<>();
Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey()));
Params.put("mpShareUrl", "//yun.dui88.com/kjy/image/20210526/1622022856685.jpeg");
Params.put("mpShareTitle", "「{{welfareName}}」宝箱裂变分享文案{{name}}");
Params.put("mpShareTitle", "宝箱裂变分享文案{{name}}");
Params.put("shareType", 4);
Response response = network.postResponse(Params, BasicConfig.MANAGER_saveOrUpdateMpShare);
boolean data =response.jsonPath().getBoolean("data");
......@@ -65,12 +80,12 @@ public class Share implements AdminAuthorization {
}
@Test(description = "新增猜数红包小程序分享", priority = 4)
@Test(description = "新增猜数红包小程序分享", priority = 5)
public void 新增猜数红包小程序分享() {
Map<String, Object> Params = new HashMap<>();
Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey()));
Params.put("mpShareUrl", "//yun.dui88.com/kjy/image/20210526/1622022856685.jpeg");
Params.put("mpShareTitle", "「{{welfareName}}」猜数字红包分享文案{{name}}");
Params.put("mpShareTitle", "猜数字红包分享文案{{name}}");
Params.put("shareType", 5);
Response response = network.postResponse(Params, BasicConfig.MANAGER_saveOrUpdateMpShare);
boolean data =response.jsonPath().getBoolean("data");
......@@ -80,12 +95,12 @@ public class Share implements AdminAuthorization {
}
@Test(description = "翻牌红包小程序分享", priority = 5)
@Test(description = "翻牌红包小程序分享", priority = 6)
public void 翻牌红包小程序分享() {
Map<String, Object> Params = new HashMap<>();
Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey()));
Params.put("mpShareUrl", "//yun.dui88.com/kjy/image/20210526/1622022856685.jpeg");
Params.put("mpShareTitle", "「{{welfareName}}」翻牌红包分享文案{{name}}");
Params.put("mpShareTitle", "翻牌红包分享文案{{name}}");
Params.put("shareType", 6);
Response response = network.postResponse(Params, BasicConfig.MANAGER_saveOrUpdateMpShare);
boolean data =response.jsonPath().getBoolean("data");
......
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