This commit is contained in:
启星
2026-01-04 14:01:30 +08:00
parent bfcac8ab2c
commit 5ab030701c
97 changed files with 2068 additions and 267 deletions

View File

@@ -50,10 +50,7 @@
@property (nonatomic,strong)NSString *icon_wd_notselect;
*/
-(void)getAppTheme{
NSString *server = ServerUrl;
if (QXGlobal.shareGlobal.isNeedChangeServer) {
server = RServerUrl;
}
NSString *server = QXGlobal.shareGlobal.currentServer;
NSString *themeUrl = [NSString stringWithFormat:@"%@%@",server,QXAppTheme];
[[QXRequset shareInstance] getWithUrl:themeUrl parameters:@{} needCache:NO success:^(id responseObject) {
[QXConfig defaultConfig];
@@ -158,6 +155,8 @@
} fail:^(NSError *error, NSString *msg, NSURLSessionDataTask *task) {
NSLog(@"请求失败");
[self alertNetworkError];
QXGlobal.shareGlobal.currentServer = RServerUrl;
QXGlobal.shareGlobal.currentH5Server = RH5ServerUrl;
QXGlobal.shareGlobal.isNeedChangeServer = YES;
}];
}

View File

@@ -21,6 +21,8 @@ typedef void (^showFinishBlock)(void);
+(instancetype)shareGlobal;
@property (nonatomic,assign)BOOL isNeedUpdate;
@property (nonatomic,assign)BOOL isNeedChangeServer;
@property (nonatomic,strong)NSString *currentServer;
@property (nonatomic,strong)NSString *currentH5Server;
// 是否登录
@property (nonatomic,readonly,assign)BOOL isLogin;
@property (nonatomic,assign)BOOL isShowLoginVC;

View File

@@ -49,6 +49,8 @@
dispatch_once(&onceToken, ^{
global = [[self alloc] init];
global.isShowLoginVC = NO;
global.currentServer = ServerUrl;
global.currentH5Server = H5ServerUrl;
});
return global;
}