Browse Source

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

ansoni 3 tháng trước cách đây
mục cha
commit
34800738cf

+ 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();
         },
     };
 });