提交
This commit is contained in:
@@ -8,8 +8,11 @@
|
||||
#import "QXAppStartViewController.h"
|
||||
#import "AppDelegate.h"
|
||||
#import "TUIChatConfig.h"
|
||||
#import "OpenUDID.h"
|
||||
#import "QXManagerMqtt.h"
|
||||
@interface QXAppStartViewController ()
|
||||
@property (nonatomic,strong)UIImageView *bgImaegView;
|
||||
@property (nonatomic,assign)BOOL isNeedChangeServer;
|
||||
@end
|
||||
|
||||
@implementation QXAppStartViewController
|
||||
@@ -47,7 +50,11 @@
|
||||
@property (nonatomic,strong)NSString *icon_wd_notselect;
|
||||
*/
|
||||
-(void)getAppTheme{
|
||||
NSString *themeUrl = [NSString stringWithFormat:@"%@%@",ServerUrl,QXAppTheme];
|
||||
NSString *server = ServerUrl;
|
||||
if (QXGlobal.shareGlobal.isNeedChangeServer) {
|
||||
server = RServerUrl;
|
||||
}
|
||||
NSString *themeUrl = [NSString stringWithFormat:@"%@%@",server,QXAppTheme];
|
||||
[[QXRequset shareInstance] getWithUrl:themeUrl parameters:@{} needCache:NO success:^(id responseObject) {
|
||||
[QXConfig defaultConfig];
|
||||
QXTabbarModel *tabbarIndex1 = QXConfig.shared.tabbarArray[0];
|
||||
@@ -145,10 +152,13 @@
|
||||
BOOL api_version = [responseObject[@"api_version"] boolValue];
|
||||
TUIChatConfig.defaultConfig.isAppStore = api_version;
|
||||
[QXGlobal shareGlobal].isAppStore = api_version;
|
||||
NSString *clientId = [OpenUDID value];
|
||||
[[QXManagerMqtt sharedInstance] bindWithUserName:@"public" password:@"" cliendId:clientId isSSL:NO];
|
||||
NSLog(@"请求成功");
|
||||
} fail:^(NSError *error, NSString *msg, NSURLSessionDataTask *task) {
|
||||
NSLog(@"请求失败");
|
||||
[self alertNetworkError];
|
||||
QXGlobal.shareGlobal.isNeedChangeServer = YES;
|
||||
}];
|
||||
}
|
||||
-(void)loginSuccess{
|
||||
|
||||
Reference in New Issue
Block a user