Browse Source

feat: 修改

year 1 day ago
parent
commit
8b332ea2a8
1 changed files with 6 additions and 23 deletions
  1. 6 23
      src/components/Card/Card.tsx

+ 6 - 23
src/components/Card/Card.tsx

@@ -62,7 +62,7 @@ const Card: FC<PropsWithChildren<CardProps>> = (props) => {
             return;
         }
         const res: any = await systemStore.setupConfig();
-        if (!res?.recharge_enable) {
+        if (res?.recharge_enable) {
             if (wallet.deposit <= 0) {
                 const feedRes = await feedback.showModal({
                     content: (modalProps: any) => (
@@ -98,31 +98,14 @@ const Card: FC<PropsWithChildren<CardProps>> = (props) => {
                     containerClassName: "p-0",
                     width: "70%",
                 });
-                // dialogManage.showDialog("AlertDialog", {
-                //     content: (
-                //         <div className="flex flex-col items-center px-[.15rem] pt-[.5rem] text-center text-[.15rem] font-bold">
-                //             <img src="/home/gold.webp" className="mb-[.15rem] w-[1rem]" alt="" />
-                //             <div className="mb-[.1rem]">
-                //                 A recompensa para novos usuários será ativada após o depósito
-                //             </div>
-                //             <div className="text-[#11de68]">podendo jogar em seguida.</div>
-                //         </div>
-                //     ),
-                //     footerText: "Depósito",
-                //     onConfirm: () => {
-                //         dialogManage.hideDialog("AlertDialog");
-                //         router.push("/deposit");
-                //     },
-                // });
-                console.log(feedRes);
+
                 return;
             }
         }
-        // if (!wallet?.score || wallet?.score <= 0) {
-        //     router.push("/deposit");
-        //     return;
-        // }
-
+        if (!wallet?.score || wallet?.score <= 0) {
+            router.push("/deposit");
+            return;
+        }
         if (!res?.browser_enable) {
             if (!isPWAorAPK()) {
                 if (isIOS()) {