|
@@ -151,6 +151,7 @@ let testStudent = function (num, team) {
|
|
|
UserMd5: "55661a861f8fae20dd505b2b4575dc0e",
|
|
UserMd5: "55661a861f8fae20dd505b2b4575dc0e",
|
|
|
Weight: 50,
|
|
Weight: 50,
|
|
|
activePercent: "@integer(1, 200)",
|
|
activePercent: "@integer(1, 200)",
|
|
|
|
|
+ // activePercent: 0,
|
|
|
bmrMSjRmrcb: 66.00000000000001,
|
|
bmrMSjRmrcb: 66.00000000000001,
|
|
|
formatCk: "@integer(1, 999)",
|
|
formatCk: "@integer(1, 999)",
|
|
|
isAlive: true,
|
|
isAlive: true,
|
|
@@ -161,6 +162,7 @@ let testStudent = function (num, team) {
|
|
|
lastUpdateTime: 1608188945184,
|
|
lastUpdateTime: 1608188945184,
|
|
|
queuePushData: [],
|
|
queuePushData: [],
|
|
|
realHr: "@integer(1, 200)",
|
|
realHr: "@integer(1, 200)",
|
|
|
|
|
+ // realHr: 0,
|
|
|
vo2Max: "@float(1,9999,0,1)"
|
|
vo2Max: "@float(1,9999,0,1)"
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
@@ -350,7 +352,7 @@ let getClassStat = function (ClassOn, dp) {
|
|
|
};
|
|
};
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-let t = 1;//0 is on 1 is off
|
|
|
|
|
|
|
+let t = 0;//0 is on 1 is off
|
|
|
if (t == 0) {
|
|
if (t == 0) {
|
|
|
// 列表测试
|
|
// 列表测试
|
|
|
Mock.mock('/api/testTable', 'post', testTable());
|
|
Mock.mock('/api/testTable', 'post', testTable());
|
|
@@ -360,7 +362,7 @@ if (t == 0) {
|
|
|
let curheadapi = 'http://192.168.0.63:8080/';
|
|
let curheadapi = 'http://192.168.0.63:8080/';
|
|
|
|
|
|
|
|
// 0: 下课 团课/私教/PK 的排名
|
|
// 0: 下课 团课/私教/PK 的排名
|
|
|
- let LessonClass = 3;
|
|
|
|
|
|
|
+ let LessonClass = 1;
|
|
|
// 1:团课/私教
|
|
// 1:团课/私教
|
|
|
// 2:竞技课2PK
|
|
// 2:竞技课2PK
|
|
|
// 3:竞技课threepk
|
|
// 3:竞技课threepk
|
|
@@ -370,7 +372,7 @@ if (t == 0) {
|
|
|
if (LessonClass == 1) {
|
|
if (LessonClass == 1) {
|
|
|
// 上团课
|
|
// 上团课
|
|
|
Mock.mock(curheadapi + 'ClassStatQuery', 'post', getClassStat(1, 1));
|
|
Mock.mock(curheadapi + 'ClassStatQuery', 'post', getClassStat(1, 1));
|
|
|
- Mock.mock(curheadapi + 'UserListInfo', 'post', testStudent(12, 1));
|
|
|
|
|
|
|
+ Mock.mock(curheadapi + 'UserListInfo', 'post', testStudent(20, 1));
|
|
|
} else if (LessonClass == 2) {
|
|
} else if (LessonClass == 2) {
|
|
|
// 上2队PK课
|
|
// 上2队PK课
|
|
|
Mock.mock(curheadapi + 'ClassStatQuery', 'post', getClassStat(1, 2));
|
|
Mock.mock(curheadapi + 'ClassStatQuery', 'post', getClassStat(1, 2));
|