修改超时

This commit is contained in:
xsean 2025-11-20 14:40:18 +08:00
parent 8829cb877b
commit a742b2e811
21 changed files with 1752 additions and 1814 deletions

View File

@ -6,5 +6,5 @@ Author: XYZShell
Section: Utilities Section: Utilities
Tag: role::developer Tag: role::developer
Architecture: iphoneos-arm Architecture: iphoneos-arm
Version: 0.0.7-10-80+debug Version: 0.0.7-10-82+debug
Installed-Size: 1696 Installed-Size: 1696

View File

@ -1 +1 @@
./packages/com.xyzshell.ioscontrol_0.0.7-10-80+debug_iphoneos-arm.deb ./packages/com.xyzshell.ioscontrol_0.0.7-10-82+debug_iphoneos-arm.deb

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1 +1 @@
80 82

View File

@ -158,7 +158,7 @@
self.ip = [[XSPhoneInfo sharedInstance] IPAddress]; self.ip = [[XSPhoneInfo sharedInstance] IPAddress];
self.remoteIp = [[XSPhoneInfo sharedInstance] remoteIp]; self.remoteIp = [[XSPhoneInfo sharedInstance] remoteIp];
self.diskSize = [[XSPhoneInfo sharedInstance] IPhoneStatus]; self.diskSize = [[XSPhoneInfo sharedInstance] IPhoneStatus];
self.message = @"251118-nt-newapi"; self.message = @"251119-nt-newapi";
// //
NSDictionary *heartbeatData = [self constructHeartbeatData]; NSDictionary *heartbeatData = [self constructHeartbeatData];
if (!heartbeatData) { if (!heartbeatData) {

View File

@ -196,22 +196,8 @@ BOOL myadTaskManualStop = NO;
} }
- (BOOL)onEnd:(NSDictionary *)dic { - (BOOL)onEnd:(NSDictionary *)dic {
NSNumber *maxEcpm = dic[@"max_ecpm"];
int sec = self->adAfter / 1000;
__weak typeof(self) weakSelf = self; __weak typeof(self) weakSelf = self;
if([maxEcpm doubleValue] <= 0.0) { dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 1 * NSEC_PER_SEC), self.manQueue, ^{
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, sec * NSEC_PER_SEC), self.manQueue, ^{
@autoreleasepool {
[weakSelf startApp];
}
});
return NO;
}
BOOL res = needAdContinue(self->taskAppId, self->_lastIdfa, maxEcpm);
if(res) {
return YES;
}
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, sec * NSEC_PER_SEC), self.manQueue, ^{
@autoreleasepool { @autoreleasepool {
[weakSelf startApp]; [weakSelf startApp];
} }
@ -279,8 +265,8 @@ BOOL myadTaskManualStop = NO;
NSLog(@"XS- MyAdTaskManager proc"); NSLog(@"XS- MyAdTaskManager proc");
NSDate* curRunTime = [NSDate date]; NSDate* curRunTime = [NSDate date];
NSTimeInterval elapsed = [curRunTime timeIntervalSinceDate:self->lastRun]; NSTimeInterval elapsed = [curRunTime timeIntervalSinceDate:self->lastRun];
BOOL washParam = [[XSPhoneConfig sharedInstance] WashParam];
if (elapsed >= 30) { if (elapsed >= 120) {
//[self onStop]; //[self onStop];
[self start]; [self start];
@ -289,12 +275,6 @@ BOOL myadTaskManualStop = NO;
if (![appId isEqual: self->taskAppId]) { if (![appId isEqual: self->taskAppId]) {
// //
NSTimeInterval currentTime = [NSDate timeIntervalSinceReferenceDate];
if (currentTime - self.lastAppSwitchTime < 30) { // 30
NSLog(@"XS- App switching throttled. Last switch was %.0f seconds ago.", currentTime - self.lastAppSwitchTime);
return;
}
[self appKill:appId]; [self appKill:appId];
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1 * NSEC_PER_SEC)), self.manQueue, ^{ dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1 * NSEC_PER_SEC)), self.manQueue, ^{
[self appRun:self->taskAppId]; [self appRun:self->taskAppId];

42
ips.txt
View File

@ -1,41 +1 @@
172.29.109.23 172.29.131.14
172.29.107.21
172.29.109.20
172.29.109.12
172.29.107.28
172.29.109.19
172.30.8.124
172.29.107.14
172.29.107.15
172.29.109.22
172.29.107.22
172.29.107.27
172.29.107.24
172.29.107.29
172.29.109.15
172.29.109.28
172.29.107.11
172.29.107.23
172.29.107.13
172.29.107.16
172.29.109.27
172.29.107.18
172.29.109.21
172.29.109.14
172.29.109.33
172.29.109.31
172.29.107.32
172.29.109.16
172.29.107.20
172.29.109.13
172.29.109.25
172.29.107.30
172.29.107.26
172.29.109.18
172.29.107.17
172.29.107.12
172.29.107.25
172.29.109.32
172.30.8.125
172.29.109.17
172.29.109.24

Binary file not shown.