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