Commit 12d5168b authored by 龚小红's avatar 龚小红

修改亲友券和客户承诺话术

parent 535da535
......@@ -2425,13 +2425,13 @@ public class SaveLive implements Authorization {
ssoLogin();
Map<String, Object> Params = new HashMap<>();
Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey()));
Params.put("giftedLotteryUrl","");
Params.put("notGiftedLotteryUrl","");
Params.put("popLotteryUrl","");
Params.put("giftedImg","https://yun.dui88.com/kjy/image/20210825/1629861430316.png");
Params.put("notGiftedImg","https://yun.dui88.com/kjy/image/20210825/1629861425857.png");
Params.put("popImg","https://yun.dui88.com/kjy/image/20210825/1629861435394.png");
Params.put("envelopeWord","这是信封话术");
Params.put("lotteryName","亲友抽奖券");
Params.put("lotteryNum",3);
Params.put("lotteryInstruction","这是亲友抽奖券的说明");
Params.put("lotteryDesc","这是亲友抽奖券的说明");
Response response = network.postResponse(Params, BasicConfig.MANAGER_relativeLottery);
System.out.println(response.body().asString());
boolean data =response.jsonPath().getBoolean("data");
......
......@@ -72,7 +72,7 @@ public class RelativeLottery implements Authorization {
}
@Test(description = "访客H收下抽奖券", priority = 20)
@Test(description = "访客H收下抽奖券", priority = 4)
public void 访客H收下抽奖券() {
visitorAuth9();
Map<String, Object> bindingParam = new HashMap<>();
......@@ -82,7 +82,7 @@ public class RelativeLottery implements Authorization {
Assert.assertTrue(success, network.message(bindingParam, MOBILE_acceptLottery, "绑定失败", bindingRes.body().asString()));
}
@Test(description = "访客H_分享直播间", priority = 19)
@Test(description = "访客H_分享直播间", priority = 5)
public void 访客H_分享直播间() {
visitorAuth9();
ThreadSleepUtils.sleep(1000);
......@@ -97,7 +97,7 @@ public class RelativeLottery implements Authorization {
}
@Test(description = "根据分享类型获取分享内容", priority = 4)
@Test(description = "根据分享类型获取分享内容", priority = 6)
public void 根据分享类型获取分享内容() {
visitorAuth9();
Map<String, Object> params = new HashMap<>();
......@@ -109,7 +109,7 @@ public class RelativeLottery implements Authorization {
Assert.assertEquals(mpShareTitle,"亲友抽奖券分享文案", network.message(params, BasicConfig.MOBILE_helpInfo, "根据分享类型获取分享内容", response.body().asString()));
}
@Test(description = "访客H_获取小程序分享码", priority = 19)
@Test(description = "访客H_获取小程序分享码", priority = 7)
public void 访客H_获取小程序分享码() {
visitorAuth9();
ThreadSleepUtils.sleep(1000);
......@@ -121,7 +121,7 @@ public class RelativeLottery implements Authorization {
Assert.assertNotNull(qrCodeUrl, network.message(signParam, MOBILE_codeLottery, "分享失败", signRes.body().asString()));
}
@Test(description = "访客H获取直播所有的订阅消息模板", priority = 4)
@Test(description = "访客H获取直播所有的订阅消息模板", priority = 8)
public void 访客H获取直播所有的订阅消息模板() {
visitorAuth9();
Map<String, Object> sycParam = new HashMap<>();
......@@ -132,7 +132,7 @@ public class RelativeLottery implements Authorization {
Assert.assertNotNull(data, network.message(sycParam, BasicConfig.USER_wxIdAllList, "获取订阅消息失败", sycRes.body().asString()));
}
@Test(description = "邀请Xmz关系绑定", priority = 20)
@Test(description = "邀请Xmz关系绑定", priority = 9)
public void 邀请Xmz关系绑定() {
visitorAuth26();
Map<String, Object> bindingParam = new HashMap<>();
......@@ -144,7 +144,7 @@ public class RelativeLottery implements Authorization {
}
@Test(description = "查询访客Xmz绑定结果和绑定凭证", priority = 22)
@Test(description = "查询访客Xmz绑定结果和绑定凭证", priority = 10)
public void 查询访客Xmz绑定结果和绑定凭证() {
visitorAuth26();
ThreadSleepUtils.sleep(2000);
......@@ -156,7 +156,7 @@ public class RelativeLottery implements Authorization {
Assert.assertTrue(type==3, network.message(tokenParam, BasicConfig.MOBILE_Token, "未获取到绑定结果", tokenRes.body().asString()));
}
@Test(description = "访客Xmz给访客H助力", priority = 38)
@Test(description = "访客Xmz给访客H助力", priority = 11)
public void 访客Xmz给访客H助力() {
visitorAuth26();
ThreadSleepUtils.sleep(2000);
......@@ -175,12 +175,12 @@ public class RelativeLottery implements Authorization {
Params.put("shareType",14);
Params.put("confId",this.List_ConfId.get(0).getWelfareConfId());
response = network.postResponse(Params, BasicConfig.MOBILE_assist);
System.out.println(response.body().asString());
boolean data = response.jsonPath().getBoolean("data");
System.out.println(data);
Assert.assertTrue(data, network.message(Params, BasicConfig.MOBILE_assist, "访客Xmz给访客H助力失败", response.body().asString()));
}
@Test(description = "查询亲友券被领取1张", priority = 3)
@Test(description = "查询亲友券被领取1张", priority = 12)
public void 查询亲友券被领取1() {
visitorAuth9();
Map<String, Object> getLiveAwardListParam = new HashMap<>();
......
......@@ -142,8 +142,8 @@ public class BasicConfig {
public static final String MANAGER_secondKillUpdate = MANAGER_HOST + "/kjy/manager/live/second/kill/goods/update";
//客户承诺话术配置
public static final String MANAGER_saveDialogue = MANAGER_HOST + "kjy/manager/live/potential/saveDialogue";
public static final String MANAGER_findDialogue = MANAGER_HOST + "kjy/manager/live/potential/findDialogue";
public static final String MANAGER_saveDialogue = MANAGER_HOST + "/kjy/manager/live/potential/saveDialogue";
public static final String MANAGER_findDialogue = MANAGER_HOST + "/kjy/manager/live/potential/findDialogue";
public static final String MOBILE_dialogue= MOBILE_HOST + "/kjy/live/agent/potential/dialogue";
public static final String MOBILE_potentialNum= MOBILE_HOST + "/kjy/live/agent/clue/potentialNum";
......@@ -299,7 +299,7 @@ public class BasicConfig {
public static final String MANAGER_relativeLottery = MANAGER_HOST + "/kjy/manager/fission/lottery/saveOrUpdate";
public static final String MANAGER_detailLottery = MANAGER_HOST + "/kjy/manager/fission/lottery/detail";
public static final String MANAGER_switchStatusLottery = MANAGER_HOST + "/kjy/manager/fission/lottery/switchStatus";
public static final String MOBILE_allLottery = MOBILE_HOST + "kjy/live/pre/conf/all";
public static final String MOBILE_allLottery = MOBILE_HOST + "/kjy/live/pre/conf/all";
public static final String MOBILE_confLottery = MOBILE_HOST +"/kjy/live/fission/lottery/conf/all";
public static final String MOBILE_codeLottery = MOBILE_HOST +"/kjy/live/fission/lottery/user/code";
public static final String MOBILE_acceptLottery = MOBILE_HOST +"/kjy/live/fission/lottery/user/accept";
......
......@@ -80,6 +80,11 @@
</classes>
</test>
<test preserve-order="true" name="亲友券">
<classes>
<class name="com.kjj.cases.live.lottery.RelativeLottery"/>
</classes>
</test>
<test preserve-order="true" name="直播前-我的客户页">
<classes>
......
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