Преглед изворни кода

fix: 修改首充签到二次请求逻辑

ansoni пре 3 месеци
родитељ
комит
34800738cf
3 измењених фајлова са 2 додато и 5 уклоњено
  1. 1 1
      .env.local
  2. 0 1
      src/app/[locale]/(doings)/depositing/page.tsx
  3. 1 3
      src/stores/useFirstPayStore.ts

+ 1 - 1
.env.local

@@ -1,7 +1,7 @@
 # 环境
 #baseurl
 # NEXT_PUBLIC_BASE_URL=http://192.168.0.71:8800
-NEXT_PUBLIC_BASE_URL=http://192.168.0.84:8800
+NEXT_PUBLIC_BASE_URL=https://hk-api.tiktokjakjkl.icu
 # NEXT_PUBLIC_BASE_URL=https://3rd-api.tiktokjakjkl.icu
 #share link
 NEXT_PUBLIC_SHARE_URL=http://192.168.0.84:3000

+ 0 - 1
src/app/[locale]/(doings)/depositing/page.tsx

@@ -18,7 +18,6 @@ const Page = () => {
         getFirstPayData();
     }, []);
 
-    console.log(`🚀🚀🚀🚀🚀-> in page.tsx on 17`, first_pay);
     return (
         <div className={"p-[0.12rem]"}>
             <Image src={"/depositing/banner.png"} alt={""} width={750} height={115} />

+ 1 - 3
src/stores/useFirstPayStore.ts

@@ -32,9 +32,7 @@ export const useFirstPayStore = create<State & Action>()((set, get) => {
         },
 
         getFirstPayData: () => {
-            if (!get().first_pay.length) {
-                get().getPayData();
-            }
+            get().getPayData();
         },
     };
 });