|
@@ -8,7 +8,7 @@
|
|
|
|
|
|
#import "Current_normalTool.h"
|
|
#import "Current_normalTool.h"
|
|
#import "TT_DarkmodeTool.h"
|
|
#import "TT_DarkmodeTool.h"
|
|
-#import "DataUtil.h"
|
|
|
|
|
|
+
|
|
#import <WebKit/WebKit.h>
|
|
#import <WebKit/WebKit.h>
|
|
#import <QMUIKit/QMUIKit.h>
|
|
#import <QMUIKit/QMUIKit.h>
|
|
|
|
|
|
@@ -29,7 +29,6 @@
|
|
|
|
|
|
#import "TT_GeneralProfile.h"
|
|
#import "TT_GeneralProfile.h"
|
|
#import "UC_CommonmoduleCat.h"
|
|
#import "UC_CommonmoduleCat.h"
|
|
-#import "XXX_Datautil.h"
|
|
|
|
#import "KWLoginedManager.h"
|
|
#import "KWLoginedManager.h"
|
|
@implementation Current_normalTool
|
|
@implementation Current_normalTool
|
|
|
|
|
|
@@ -966,33 +965,6 @@ static char encodingTable[64] = {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
-+ (void)tengtengconfightmlupdate {
|
|
|
|
- [UIApplication sharedApplication].networkActivityIndicatorVisible = YES;
|
|
|
|
- NSData *xmlData = [NSData dataWithContentsOfURL:[NSURL URLWithString:[XXX_Datautil getuploadhtml]]];
|
|
|
|
- [UIApplication sharedApplication].networkActivityIndicatorVisible = NO;
|
|
|
|
- NSString *xmlString = [[NSString alloc] initWithData:xmlData encoding:NSUTF8StringEncoding];
|
|
|
|
- NSArray *arr = [xmlString componentsSeparatedByString:@"</version>"];
|
|
|
|
- if (arr.count > 1) {
|
|
|
|
- NSArray *tt = [arr[0] componentsSeparatedByString:@"<version>"];
|
|
|
|
- if (tt.count > 1) {
|
|
|
|
- NSString *htmlversion = tt[1];
|
|
|
|
- Exist(@"htmlV") {
|
|
|
|
- NSString *htmlV = TakeOut(@"htmlV");
|
|
|
|
- if ([htmlversion integerValue] > [htmlV integerValue]) {
|
|
|
|
- [Current_normalTool clearHTMLCache];
|
|
|
|
- }
|
|
|
|
- }else {
|
|
|
|
- SaveObject(htmlversion, @"htmlV")
|
|
|
|
- [Current_normalTool clearHTMLCache];
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- if (xmlData == nil) {
|
|
|
|
- NSLog(@"File read failed!:%@", xmlString);
|
|
|
|
- }else {
|
|
|
|
- NSLog(@"File read succeed!:%@",xmlString);
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|