提交
This commit is contained in:
@@ -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;
|
||||
}];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user