hook 配置优化
This commit is contained in:
parent
edcb876dec
commit
d28990a768
@ -112,7 +112,7 @@
|
||||
@try {
|
||||
if (!self->iphone || !self->http) return;
|
||||
|
||||
NSString *server = self->iphone.ServerURL;
|
||||
NSString *server = self->iphone.MainServerURL;
|
||||
if (!server.length) {
|
||||
NSLog(@"Invalid server URL");
|
||||
return;
|
||||
|
||||
@ -47,10 +47,10 @@
|
||||
}
|
||||
|
||||
- (NSString *)cmdUrl {
|
||||
return [NSString stringWithFormat:@"%@%@", _config.ServerURL, CMD];
|
||||
return [NSString stringWithFormat:@"%@%@", _config.MainServerURL, CMD];
|
||||
}
|
||||
- (NSString *)cmdResUrl {
|
||||
return [NSString stringWithFormat:@"%@%@", _config.ServerURL, CMD_RES];
|
||||
return [NSString stringWithFormat:@"%@%@", _config.MainServerURL, CMD_RES];
|
||||
}
|
||||
|
||||
- (void) start {
|
||||
|
||||
@ -436,8 +436,7 @@ BOOL myadTaskManualStop = NO;
|
||||
if(strongSelf->dataId) {
|
||||
[tempBfaceDictKey setValue:strongSelf->dataId forKey:@"dataId"];
|
||||
} else {
|
||||
NSString *dataId = @"0";
|
||||
[tempBfaceDictKey setValue:dataId forKey:@"dataId"];
|
||||
[tempBfaceDictKey setValue:@"0" forKey:@"dataId"];
|
||||
}
|
||||
if(strongSelf->remoteIp) {
|
||||
[tempBfaceDictKey setValue:strongSelf->remoteIp forKey:@"remoteIp"];
|
||||
|
||||
@ -214,9 +214,7 @@ static NSString *_configPath = @"/User/OhNoData/config001.plist";
|
||||
}
|
||||
|
||||
- (NSString *)MainServerURL {
|
||||
return [self GetMyConfigStrVal:@"ServerURL" defVal:@"http://192.168.40.8:8080"];
|
||||
//return [self GetMyConfigStrVal:@"MainServerURL" defVal:@"http://172.30.8.111:8100"];
|
||||
|
||||
return [self GetMyConfigStrVal:@"MainServerURL" defVal:@"http://192.168.40.8:8080"];
|
||||
}
|
||||
|
||||
- (NSString *)ServerURL {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user