|
|
@@ -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");
|
|
|
}
|
|
|
}
|
|
|
}
|