|
|
@@ -194,10 +194,10 @@ let testStudent = function (num, team, mustbeTeamOne) {
|
|
|
};
|
|
|
};
|
|
|
|
|
|
-let getNewUser = function (code) {
|
|
|
+let getNewUser = function (code, t) {
|
|
|
|
|
|
let item = [];
|
|
|
- for (var i = 0; i < 7; i++) {
|
|
|
+ for (var i = 0; i <= t; i++) {
|
|
|
item.push({
|
|
|
"SvId": "@guid",
|
|
|
"UserId": "@integer(15253135600, 15253135699)",
|
|
|
@@ -401,8 +401,8 @@ if (t == 1) {
|
|
|
// }
|
|
|
|
|
|
// 0: 下课 团课/私教/PK 的排名
|
|
|
- let LessonClass = 0;
|
|
|
- let LessonDp = 3;
|
|
|
+ let LessonClass = 1;
|
|
|
+ let LessonDp = 1;
|
|
|
// 1:团课/私教
|
|
|
// 2:竞技课2PK
|
|
|
// 3:竞技课threepk
|
|
|
@@ -412,8 +412,8 @@ if (t == 1) {
|
|
|
// 上团课
|
|
|
Mock.mock(curheadapi + 'ClassStatQuery', 'post', getClassStat(1, 1));
|
|
|
Mock.mock(Mockapi + 'ClassStatQuery', 'post', getClassStat(1, 1));
|
|
|
- Mock.mock(curheadapi + 'UserListInfo', 'post', testStudent(30, 1));//true
|
|
|
- Mock.mock(Mockapi + 'UserListInfo', 'post', testStudent(30, 1)); //
|
|
|
+ Mock.mock(curheadapi + 'UserListInfo', 'post', testStudent(1, 1));//true
|
|
|
+ Mock.mock(Mockapi + 'UserListInfo', 'post', testStudent(1, 1)); //
|
|
|
} else if (LessonClass == 2) {
|
|
|
// 上2队PK课
|
|
|
Mock.mock(curheadapi + 'ClassStatQuery', 'post', getClassStat(1, 2));
|
|
|
@@ -425,7 +425,7 @@ if (t == 1) {
|
|
|
Mock.mock(curheadapi + 'ClassStatQuery', 'post', getClassStat(1, 3));
|
|
|
Mock.mock(Mockapi + 'ClassStatQuery', 'post', getClassStat(1, 3));
|
|
|
Mock.mock(curheadapi + 'UserListInfo', 'post', testStudent(2, 3,));
|
|
|
- Mock.mock(Mockapi + 'UserListInfo', 'post', testStudent(4, 3,));
|
|
|
+ Mock.mock(Mockapi + 'UserListInfo', 'post', testStudent(6, 3,));
|
|
|
Mock.mock(curheadapi + 'ClassUserRank', 'post', testStudent(1, 2));
|
|
|
Mock.mock(Mockapi + 'ClassUserRank', 'post', testStudent(1, 2));
|
|
|
} else if (LessonClass == 0) {
|
|
|
@@ -468,11 +468,11 @@ if (t == 1) {
|
|
|
Mock.mock(curheadapi + 'UserRankingQuery', 'post', UserRankingQuery(8));
|
|
|
Mock.mock(Mockapi + 'UserRankingQuery', 'post', UserRankingQuery(8));
|
|
|
// 新同学 0 999
|
|
|
- Mock.mock(curheadapi + 'getNewUser', 'post', getNewUser(999));
|
|
|
- Mock.mock(Mockapi + 'getNewUser', 'post', getNewUser(999));
|
|
|
+ Mock.mock(curheadapi + 'getNewUser', 'post', getNewUser(999, 12));
|
|
|
+ Mock.mock(Mockapi + 'getNewUser', 'post', getNewUser(999, 12));
|
|
|
// 彩蛋 0 999
|
|
|
- Mock.mock(curheadapi + 'getRecordBreak', 'post', getRecordBreak(999));
|
|
|
- Mock.mock(Mockapi + 'getRecordBreak', 'post', getRecordBreak(999));
|
|
|
+ Mock.mock(curheadapi + 'getRecordBreak', 'post', getRecordBreak(0));
|
|
|
+ Mock.mock(Mockapi + 'getRecordBreak', 'post', getRecordBreak(0));
|
|
|
}
|
|
|
|
|
|
export default Mock;
|