1. 解决部分模块耦合问题
2. 重新规划模块依赖关系 3. 解决主页左侧遮罩颜色问题
This commit is contained in:
@@ -143,16 +143,13 @@ public class AbsMogoApplication extends Application {
|
||||
NetConfig.instance().setSignaturePrefix( Constants.SIGN_PREFIX )
|
||||
.setPublicParams( ParamsUtil.getStaticParams() )
|
||||
.setHostnameVerifier( new AllAllowedHostnameVerifier() )
|
||||
.addNetworkInterceptor( new Interceptor() {
|
||||
@Override
|
||||
public Response intercept( Chain chain ) throws IOException {
|
||||
Request original = chain.request();
|
||||
Request request = original.newBuilder()
|
||||
.header( "token", SpStorage.getTicket() )
|
||||
.method( original.method(), original.body() )
|
||||
.build();
|
||||
return chain.proceed( request );
|
||||
}
|
||||
.addNetworkInterceptor( chain -> {
|
||||
Request original = chain.request();
|
||||
Request request = original.newBuilder()
|
||||
.header( "token", SpStorage.getTicket() )
|
||||
.method( original.method(), original.body() )
|
||||
.build();
|
||||
return chain.proceed( request );
|
||||
} )
|
||||
.setLoggable( DebugConfig.isDebug() );
|
||||
}
|
||||
|
||||
@@ -282,4 +282,17 @@ public class DebugConfig {
|
||||
public static boolean isIsSupportLauncherCardRefreshStrategy() {
|
||||
return isSupportLauncherCardRefreshStrategy;
|
||||
}
|
||||
|
||||
/**
|
||||
* 是否需要刷新个人信息
|
||||
*/
|
||||
private static boolean needRequestUserInfo = false;
|
||||
|
||||
public static void setNeedRequestUserInfo( boolean needRequestUserInfo ) {
|
||||
DebugConfig.needRequestUserInfo = needRequestUserInfo;
|
||||
}
|
||||
|
||||
public static boolean isNeedRequestUserInfo() {
|
||||
return needRequestUserInfo;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user