Commit e71b5220 authored by 龚小红's avatar 龚小红

修复贴片上架逻辑中由于看直播攒现金删除权益导致的坐标错误的问题

parent ed4d8426
...@@ -66,6 +66,7 @@ public class NoviceGuidance implements Authorization { ...@@ -66,6 +66,7 @@ public class NoviceGuidance implements Authorization {
@Test(description = "进入名片后唤起新手引导",priority = 5) @Test(description = "进入名片后唤起新手引导",priority = 5)
public void 进入名片后唤起新手引导(){ public void 进入名片后唤起新手引导(){
sleep(2000);
Response response = network.getResponse(SELLERCARD_CARDGUIDE); Response response = network.getResponse(SELLERCARD_CARDGUIDE);
boolean success = response.jsonPath().getBoolean("success"); boolean success = response.jsonPath().getBoolean("success");
int guideType = response.jsonPath().getInt("data.guideType"); int guideType = response.jsonPath().getInt("data.guideType");
......
...@@ -287,7 +287,7 @@ public class LiveVisitors implements Authorization ...@@ -287,7 +287,7 @@ public class LiveVisitors implements Authorization
adminAuth(); adminAuth();
Map<String, Object> params = new HashMap<>(); Map<String, Object> params = new HashMap<>();
params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
params.put("confId", this.PushList.get(5).getConfId()); params.put("confId", this.PushList.get(4).getConfId());
Response response = network.postResponse(params, BasicConfig.MOBILE_pasterOn); Response response = network.postResponse(params, BasicConfig.MOBILE_pasterOn);
boolean data = response.jsonPath().getBoolean("data"); boolean data = response.jsonPath().getBoolean("data");
System.out.println(data); System.out.println(data);
...@@ -301,13 +301,13 @@ public class LiveVisitors implements Authorization ...@@ -301,13 +301,13 @@ public class LiveVisitors implements Authorization
ThreadSleepUtils.sleep(1000); ThreadSleepUtils.sleep(1000);
Map<String, Object> params = new HashMap<>(); Map<String, Object> params = new HashMap<>();
params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
params.put("confId", this.PushList.get(5).getConfId()); params.put("confId", this.PushList.get(4).getConfId());
Response response = network.getResponse(params, BasicConfig.MOBILE_ResourceList); Response response = network.getResponse(params, BasicConfig.MOBILE_ResourceList);
List<LiveVisitor> liveVisitors = JsonUtil.parseResponseToListBean(response, LiveVisitor.class); List<LiveVisitor> liveVisitors = JsonUtil.parseResponseToListBean(response, LiveVisitor.class);
LiveVisitor form = liveVisitors.get(5); LiveVisitor form = liveVisitors.get(4);
boolean isHasConfPaster=form.isHasConfPaster(); boolean isHasConfPaster=form.isHasConfPaster();
System.out.println(isHasConfPaster); System.out.println(response.body().asString());
Assert.assertTrue(isHasConfPaster, network.message(params, BasicConfig.MOBILE_ResourceList, "贴片上架失败", response.body().asString())); Assert.assertTrue(isHasConfPaster, network.message(params, BasicConfig.MOBILE_ResourceList, "获取列表失败", response.body().asString()));
} }
@Test(description = "访客获取贴片信息", priority = 19) @Test(description = "访客获取贴片信息", priority = 19)
...@@ -328,7 +328,7 @@ public class LiveVisitors implements Authorization ...@@ -328,7 +328,7 @@ public class LiveVisitors implements Authorization
adminAuth(); adminAuth();
Map<String, Object> params = new HashMap<>(); Map<String, Object> params = new HashMap<>();
params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
params.put("confId", this.PushList.get(5).getConfId()); params.put("confId", this.PushList.get(4).getConfId());
Response response = network.postResponse(params, BasicConfig.MOBILE_pasterOff); Response response = network.postResponse(params, BasicConfig.MOBILE_pasterOff);
boolean data = response.jsonPath().getBoolean("data"); boolean data = response.jsonPath().getBoolean("data");
System.out.println(data); System.out.println(data);
......
...@@ -1419,6 +1419,7 @@ public class SaveLive implements Authorization { ...@@ -1419,6 +1419,7 @@ public class SaveLive implements Authorization {
Params.put("showAmount",1000); Params.put("showAmount",1000);
Params.put("showMaxAmount",1000); Params.put("showMaxAmount",1000);
Params.put("poolType",1); Params.put("poolType",1);
Params.put("openSceneType",1);
Params.put("freeNum",1); Params.put("freeNum",1);
Response response = network.postResponse(Params, BasicConfig.MANAGER_flipWord); Response response = network.postResponse(Params, BasicConfig.MANAGER_flipWord);
boolean data = response.jsonPath().getBoolean("data"); 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