ソースを参照

fix: 修改轮盘进入逻辑

ansoni 2 ヶ月 前
コミット
43e14595dc
1 ファイル変更3 行追加4 行削除
  1. 3 4
      src/app/[locale]/(doings)/cashWheel/page.tsx

+ 3 - 4
src/app/[locale]/(doings)/cashWheel/page.tsx

@@ -1,5 +1,4 @@
 import { WheelsType } from "@/api/cashWheel";
-import { redirect } from "@/i18n/routing";
 import { server } from "@/utils/server";
 import CashWheelClient from "./CashWheelClient";
 
@@ -27,9 +26,9 @@ const getWheelApi = async () => {
             if (Array.isArray(res.data.not_receive) && res.data.not_receive.length > 0) {
                 return;
             }
-            if (!Array.isArray(res.data) && res.data.activate.end_time === 0) {
-                redirect({ href: "/", locale: "br" });
-            }
+            // if (!Array.isArray(res.data) && res.data.activate.end_time === 0) {
+            //     redirect({ href: "/", locale: "br" });
+            // }
         });
 };
 const CashWheel = async () => {