zhejiushizhuce преди 1 година
родител
ревизия
ef08222c73
променени са 2 файла, в които са добавени 5 реда и са изтрити 2 реда
  1. 1 0
      src/widgets/WPaymentOrder/index.jsx
  2. 4 2
      src/widgets/WWelfarebar/index.jsx

+ 1 - 0
src/widgets/WPaymentOrder/index.jsx

@@ -30,6 +30,7 @@ const WPaymentOrder=({close})=>{
         )
     }
     const renderPayOrder=()=>{
+        if (orderInfo==null)return (<></>);
         if (orderInfo.redirectURL != null && orderInfo.redirectURL!==""){
             return renderOrderRedirect();
         }

+ 4 - 2
src/widgets/WWelfarebar/index.jsx

@@ -6,7 +6,7 @@ import {getFirstBonus, getOpenRelief, getPopBindPhone, getUpgradeBonus, getUserI
 import {APP_WELFARE} from "@constants/app";
 import {getBonusPack, getCurrPayOrder, getFirstPayMulti, getOFirstPay} from "@features/paySlice";
 import {getProtectInfo} from "@features/protectSlice";
-import {formatCash, formatTime} from "@utils/helpers";
+import {formatCash, formatTime, localStorageGet, localStorageSet} from "@utils/helpers";
 import {useThemeProvider} from "@contexts/themeContext";
 import {useSidebar} from "@contexts/sidebarContext";
 import {useLocation} from "react-router-dom";
@@ -127,9 +127,11 @@ const WWelfarebar = () => {
             // }
             if (firstPayMulti!=null){
                 state=1;
+                let firstOpen=localStorageGet("IS_FIRST_PAY_OPEN","");
                 //充值成功弹一下
-                if (firstPayMulti.pay_sucess){
+                if (firstPayMulti.pay_sucess&&firstOpen===""){
                     global.showFirstPay();
+                    localStorageSet("IS_FIRST_PAY_OPEN","1");
                 }
             }
         }