|
|
@@ -88,7 +88,7 @@ export const buildReqReducer=(builder,thunk,callback,statusCB=null)=>{
|
|
|
//路由
|
|
|
export const reqGetRoutes = createAsyncThunk(
|
|
|
APP_ROUTES,
|
|
|
- async (thunkAPI) => {
|
|
|
+ async (arg,thunkAPI) => {
|
|
|
let params={
|
|
|
url:APP_ROUTES,
|
|
|
params:{
|
|
|
@@ -103,6 +103,9 @@ export const reqGetRoutes = createAsyncThunk(
|
|
|
params.params.ia=ia;
|
|
|
}
|
|
|
const response = await Http.get(params)
|
|
|
+ if (response&&response.user!=null){
|
|
|
+ thunkAPI.dispatch(updateBonusPack(response.user));
|
|
|
+ }
|
|
|
return response;
|
|
|
},
|
|
|
)
|