修改超时
This commit is contained in:
parent
8829cb877b
commit
a742b2e811
@ -6,5 +6,5 @@ Author: XYZShell
|
||||
Section: Utilities
|
||||
Tag: role::developer
|
||||
Architecture: iphoneos-arm
|
||||
Version: 0.0.7-10-80+debug
|
||||
Version: 0.0.7-10-82+debug
|
||||
Installed-Size: 1696
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@ -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.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
||||
80
|
||||
82
|
||||
@ -158,7 +158,7 @@
|
||||
self.ip = [[XSPhoneInfo sharedInstance] IPAddress];
|
||||
self.remoteIp = [[XSPhoneInfo sharedInstance] remoteIp];
|
||||
self.diskSize = [[XSPhoneInfo sharedInstance] IPhoneStatus];
|
||||
self.message = @"251118-nt-newapi";
|
||||
self.message = @"251119-nt-newapi";
|
||||
// 构建请求数据
|
||||
NSDictionary *heartbeatData = [self constructHeartbeatData];
|
||||
if (!heartbeatData) {
|
||||
|
||||
@ -196,22 +196,8 @@ BOOL myadTaskManualStop = NO;
|
||||
}
|
||||
|
||||
- (BOOL)onEnd:(NSDictionary *)dic {
|
||||
NSNumber *maxEcpm = dic[@"max_ecpm"];
|
||||
int sec = self->adAfter / 1000;
|
||||
__weak typeof(self) weakSelf = self;
|
||||
if([maxEcpm doubleValue] <= 0.0) {
|
||||
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, ^{
|
||||
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 1 * NSEC_PER_SEC), self.manQueue, ^{
|
||||
@autoreleasepool {
|
||||
[weakSelf startApp];
|
||||
}
|
||||
@ -279,8 +265,8 @@ BOOL myadTaskManualStop = NO;
|
||||
NSLog(@"XS- MyAdTaskManager proc");
|
||||
NSDate* curRunTime = [NSDate date];
|
||||
NSTimeInterval elapsed = [curRunTime timeIntervalSinceDate:self->lastRun];
|
||||
|
||||
if (elapsed >= 30) {
|
||||
BOOL washParam = [[XSPhoneConfig sharedInstance] WashParam];
|
||||
if (elapsed >= 120) {
|
||||
//[self onStop];
|
||||
[self start];
|
||||
|
||||
@ -289,12 +275,6 @@ BOOL myadTaskManualStop = NO;
|
||||
|
||||
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];
|
||||
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1 * NSEC_PER_SEC)), self.manQueue, ^{
|
||||
[self appRun:self->taskAppId];
|
||||
|
||||
42
ips.txt
42
ips.txt
@ -1,41 +1 @@
|
||||
172.29.109.23
|
||||
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
|
||||
172.29.131.14
|
||||
BIN
packages/20251119-nt-newapi.deb
Normal file
BIN
packages/20251119-nt-newapi.deb
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user