hook 配置优化

This commit is contained in:
xsean 2025-11-13 11:11:29 +08:00
parent edcb876dec
commit d28990a768
5 changed files with 5 additions and 69463 deletions

View File

@ -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;

View File

@ -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 {

View File

@ -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"];

View File

@ -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 {

69455
a1.log

File diff suppressed because it is too large Load Diff