|
|
@@ -418,7 +418,8 @@ export const Main=createSlice({
|
|
|
favorites:[],
|
|
|
gameID:0,
|
|
|
serverKick:0,
|
|
|
- promoteInstall:0
|
|
|
+ promoteInstall:0,
|
|
|
+ openPay:0
|
|
|
},
|
|
|
reducers: {
|
|
|
logout:(state, action)=>{
|
|
|
@@ -471,6 +472,9 @@ export const Main=createSlice({
|
|
|
},
|
|
|
updateServerKick:(state,action)=>{
|
|
|
state.serverKick=action.payload;
|
|
|
+ },
|
|
|
+ updateOpenPay:(state,action)=>{
|
|
|
+ state.openPay=action.payload;
|
|
|
}
|
|
|
},
|
|
|
extraReducers: (builder) => {
|
|
|
@@ -491,7 +495,7 @@ export const Main=createSlice({
|
|
|
buildReqReducer(builder,reqFavoGet,reducerFavoGet,null);
|
|
|
},
|
|
|
})
|
|
|
-export const {logout,updateUserInfo,updateUserScore,updateAddScore,updateGameLike,updateCurrGame,updateServerKick} = Main.actions;
|
|
|
+export const {logout,updateUserInfo,updateUserScore,updateAddScore,updateGameLike,updateCurrGame,updateServerKick,updateOpenPay} = Main.actions;
|
|
|
//数据获取
|
|
|
export const getFetchStatus=(state)=>{
|
|
|
return state.main.status;
|
|
|
@@ -660,6 +664,9 @@ export const getKickState=(state)=>{
|
|
|
export const getPromoteInstall=(state)=>{
|
|
|
return state.main.promoteInstall;
|
|
|
}
|
|
|
+export const getOpenPay=(state)=>{
|
|
|
+ return state.main.openPay;
|
|
|
+}
|
|
|
//数据获取
|
|
|
export default Main.reducer;
|
|
|
|