Commit b181f403 authored by 张艳玲's avatar 张艳玲

update

parent dfd9db78
...@@ -456,7 +456,7 @@ public class Lottery implements AdminAuthorization { ...@@ -456,7 +456,7 @@ public class Lottery implements AdminAuthorization {
Response luckDetailRes = network.getResponse(luckDetailParam, BasicConfig.ANCHOR_luckDetail); Response luckDetailRes = network.getResponse(luckDetailParam, BasicConfig.ANCHOR_luckDetail);
try { try {
Boolean hasLuckTask = luckDetailRes.jsonPath().getBoolean("data.hasLuckTask"); Boolean hasLuckTask = luckDetailRes.jsonPath().getBoolean("data.hasLuckTask");
Assert.assertTrue(hasLuckTask, network.message(luckDetailParam, BasicConfig.USER_result, "查询任务失败", luckDetailRes.body().asString())); Assert.assertTrue(hasLuckTask, network.message(luckDetailParam, BasicConfig.ANCHOR_luckDetail, "查询任务失败", luckDetailRes.body().asString()));
} catch (Exception e) { } catch (Exception e) {
System.out.println("result = " + JSON.toJSONString(luckDetailRes.jsonPath().get())); System.out.println("result = " + JSON.toJSONString(luckDetailRes.jsonPath().get()));
throw e; throw e;
...@@ -630,7 +630,7 @@ public class Lottery implements AdminAuthorization { ...@@ -630,7 +630,7 @@ public class Lottery implements AdminAuthorization {
break; break;
} }
} }
Assert.assertTrue(result, network.message(myLotteryCodeParam, BasicConfig.MOBILE_MyLotteryCode, "获取抽奖码列表失败", myLotteryCodeRes.body().asString())); Assert.assertTrue(result, network.message(myLotteryCodeParam, BasicConfig.MOBILE_MyLotteryCode, "查询访客B的抽奖券列表失败", myLotteryCodeRes.body().asString()));
} }
...@@ -643,7 +643,7 @@ public class Lottery implements AdminAuthorization { ...@@ -643,7 +643,7 @@ public class Lottery implements AdminAuthorization {
Response myCountRes = network.getResponse(myCountParam, BasicConfig.USER_myCount); Response myCountRes = network.getResponse(myCountParam, BasicConfig.USER_myCount);
long data = myCountRes.jsonPath().getLong("data"); long data = myCountRes.jsonPath().getLong("data");
System.out.println(data); System.out.println(data);
Assert.assertNotNull(data, network.message(myCountParam, BasicConfig.USER_myCount, "获取抽奖码数量失败", myCountRes.body().asString())); Assert.assertNotNull(data, network.message(myCountParam, BasicConfig.USER_myCount, "获取访客B抽奖码数量失败", myCountRes.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