瀏覽代碼

更新一下

flyzto 3 月之前
父節點
當前提交
dee3d68da6

+ 2 - 2
server/models/GamesPs.js

@@ -703,7 +703,7 @@ const updateSolutions = (solutions) => {
 /**
  * 获取中单方案
  */
-const getSolutions = async () => {
+const getSolutions = async ({ win_min }) => {
   const { minShowAmount } = await getSetting();
   const solutionsList = Object.values(GAMES.Solutions);
   const gamesRelation = getGamesRelation();
@@ -711,7 +711,7 @@ const getSolutions = async () => {
   const solutions = solutionsList.sort((a, b) => b.sol.win_average - a.sol.win_average)
   .filter(item => {
     const { sol: { win_average } } = item;
-    return win_average >= minShowAmount;
+    return win_average >= win_min ?? minShowAmount;
   })
   .map(item => {
     const { info: { id } } = item;

+ 2 - 1
server/routes/pstery.js

@@ -67,7 +67,8 @@ router.get('/get_games_relation', (req, res) => {
 
 // 获取中单方案
 router.get('/get_solutions', (req, res) => {
-  Games.getSolutions()
+  const { win_min } = req.query;
+  Games.getSolutions({ win_min: +win_min })
   .then(({ solutions, gamesEvents }) => {
     res.sendSuccess({ solutions, gamesEvents });
   })

+ 7 - 7
web/apps/web-antd/src/views/_core/authentication/login.vue

@@ -32,13 +32,13 @@ const formSchema = computed((): VbenFormSchema[] => {
       label: $t('authentication.password'),
       rules: z.string().min(1, { message: $t('authentication.passwordTip') }),
     },
-    {
-      component: markRaw(SliderCaptcha),
-      fieldName: 'captcha',
-      rules: z.boolean().refine((value) => value, {
-        message: $t('authentication.verifyRequiredTip'),
-      }),
-    },
+    // {
+    //   component: markRaw(SliderCaptcha),
+    //   fieldName: 'captcha',
+    //   rules: z.boolean().refine((value) => value, {
+    //     message: $t('authentication.verifyRequiredTip'),
+    //   }),
+    // },
   ];
 });
 </script>

+ 1 - 1
web/apps/web-antd/src/views/match/datatest/index.vue

@@ -91,7 +91,7 @@ const refreshData = () => {
   updateTime();
   Promise.all([
     requestClient.get('/pstery/get_games_relation', { params: { mk: selectedTestMode.value } }),
-    requestClient.get('/pstery/get_solutions')
+    requestClient.get('/pstery/get_solutions', { params: { win_min: -99999 } })
   ])
   .then(([relations, solutions]) => {
     gamesRelation.value = relations;