|
@@ -65,6 +65,9 @@
|
|
|
<button class="btn btn-secondary" @click="runTest">
|
|
<button class="btn btn-secondary" @click="runTest">
|
|
|
运行测试
|
|
运行测试
|
|
|
</button>
|
|
</button>
|
|
|
|
|
+ <button class="btn btn-secondary" @click="verifyData">
|
|
|
|
|
+ 验证数据
|
|
|
|
|
+ </button>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -97,7 +100,7 @@ const refreshData = () => {
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-const runTest = async () => {
|
|
|
|
|
|
|
+const runTest = () => {
|
|
|
gamesSolution.value.solutions.forEach((solution) => {
|
|
gamesSolution.value.solutions.forEach((solution) => {
|
|
|
const { info: { id }} = solution;
|
|
const { info: { id }} = solution;
|
|
|
const relation = gamesRelation.value.find((relation) => relation.id === id);
|
|
const relation = gamesRelation.value.find((relation) => relation.id === id);
|
|
@@ -114,6 +117,18 @@ const runTest = async () => {
|
|
|
console.log('gamesRelation', gamesRelation);
|
|
console.log('gamesRelation', gamesRelation);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+const verifyData = () => {
|
|
|
|
|
+ const solutions = gamesSolution.value.solutions;
|
|
|
|
|
+ const invalidSolutions = [];
|
|
|
|
|
+ solutions.forEach((solution) => {
|
|
|
|
|
+ const { sol: { win_average, win_profit_rate } } = solution;
|
|
|
|
|
+ if (win_average * win_profit_rate < 0) {
|
|
|
|
|
+ invalidSolutions.push(solution)
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ console.log('invalidSolutions', invalidSolutions);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
// const currentTime = ref('')
|
|
// const currentTime = ref('')
|
|
|
|
|
|
|
|
// const updateTime = () => {
|
|
// const updateTime = () => {
|