|
|
@@ -176,6 +176,7 @@ const reducerRoutes=(state,action)=>{
|
|
|
}
|
|
|
let conf=json.conf;
|
|
|
let hallServerUrl='';
|
|
|
+ let promoteInstall=0;
|
|
|
if (conf){
|
|
|
if (!!conf.hall)hallServerUrl=conf.hall;
|
|
|
if (!!conf.DOLLAR)global.DOLLAR=conf.DOLLAR;
|
|
|
@@ -185,10 +186,12 @@ const reducerRoutes=(state,action)=>{
|
|
|
let {type,id}=conf.pf;
|
|
|
initTrackAll(type,id,isLogin?userInfo.UserID:null)
|
|
|
}
|
|
|
+ //promoteInstall
|
|
|
+ if (!!conf.promoteInstall)promoteInstall=conf.promoteInstall;
|
|
|
}
|
|
|
//favorites
|
|
|
// let favorites=getFavorites(json.favorites);
|
|
|
- Object.assign(state, {routes:state.routes,asyncRoutes:data,styles:styles,blocks:blocks,...generData,isLogin:isLogin,userInfo:userInfo,hallServerUrl:hallServerUrl});
|
|
|
+ Object.assign(state, {routes:state.routes,asyncRoutes:data,styles:styles,blocks:blocks,...generData,isLogin:isLogin,userInfo:userInfo,hallServerUrl:hallServerUrl,promoteInstall:promoteInstall});
|
|
|
}
|
|
|
}
|
|
|
const routesStatus=(state,status,arg)=>{
|
|
|
@@ -415,6 +418,7 @@ export const Main=createSlice({
|
|
|
favorites:[],
|
|
|
gameID:0,
|
|
|
serverKick:0,
|
|
|
+ promoteInstall:0
|
|
|
},
|
|
|
reducers: {
|
|
|
logout:(state, action)=>{
|
|
|
@@ -653,6 +657,9 @@ export const getGameLike=(id)=>(state)=>{
|
|
|
export const getKickState=(state)=>{
|
|
|
return state.main.serverKick;
|
|
|
}
|
|
|
+export const getPromoteInstall=(state)=>{
|
|
|
+ return state.main.promoteInstall;
|
|
|
+}
|
|
|
//数据获取
|
|
|
export default Main.reducer;
|
|
|
|