zhejiushizhuce 1 rok temu
rodzic
commit
77c72e5774
1 zmienionych plików z 6 dodań i 2 usunięć
  1. 6 2
      src/App.js

+ 6 - 2
src/App.js

@@ -237,8 +237,12 @@ const App = () => {
         // if (delta<86400000){
         //     return false;
         // }
-        global.showFirstPay();
-        localStorageSet(key,Date.now());
+        if (pathname==="/") {
+            if (hash == null || hash === "") {
+                global.showFirstPay();
+                localStorageSet(key,Date.now());
+            }
+        }
     }
     const checkOpenCheckin=()=>{
         if (userID>0){