Commit 508c23fa by xuyamei

解决报错

parent b57b90f4
...@@ -50,7 +50,7 @@ public class TestEditStudioAdmin extends BaseTestImpl { ...@@ -50,7 +50,7 @@ public class TestEditStudioAdmin extends BaseTestImpl {
// 随机获取一页的随机员工 // 随机获取一页的随机员工
Random random = new Random(); Random random = new Random();
int index = pageIndex+1 == pages ? random.nextInt(total%20-1)+1 : random.nextInt(19)+1; int index = pageIndex+1 == pages ? random.nextInt(total%20-1)+1 : random.nextInt(19)+1;
body = "{\"size\":20,\"current\":"+pageIndex+",\"state\":\"DUTY\"}"; body = "{\"size\":20,\"current\":"+pageIndex+"}";
adminPage = adminTools.pageStudioAdmin(body); adminPage = adminTools.pageStudioAdmin(body);
String adminId = adminPage.getJSONObject("result").getJSONArray("records").getJSONObject(index).getString("id"); String adminId = adminPage.getJSONObject("result").getJSONArray("records").getJSONObject(index).getString("id");
......
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