修改超时时间

This commit is contained in:
xsean 2025-11-06 14:20:59 +08:00
parent 1fb432a784
commit b2cfb485af
12 changed files with 2 additions and 1 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -11,6 +11,7 @@ TWEAK_NAME = AppRunMan
AppRunMan_FRAMEWORKS = CoreLocation CFNetwork CoreTelephony Security UIKit IOSurface JavaScriptCore network AppRunMan_FRAMEWORKS = CoreLocation CFNetwork CoreTelephony Security UIKit IOSurface JavaScriptCore network
AppRunMan_PRIVATE_FRAMEWORKS = IOKit AppRunMan_PRIVATE_FRAMEWORKS = IOKit
AppRunMan_FILES = Tweak.x $(wildcard server/*.m) $(wildcard server/GCD/*.m) AppRunMan_FILES = Tweak.x $(wildcard server/*.m) $(wildcard server/GCD/*.m)
AppRunMan_LDFLAGS = -v
AppRunMan_CFLAGS = -Wno-error -Wno-module-import-in-extern-c -fobjc-arc AppRunMan_CFLAGS = -Wno-error -Wno-module-import-in-extern-c -fobjc-arc
include $(THEOS_MAKE_PATH)/tweak.mk include $(THEOS_MAKE_PATH)/tweak.mk

View File

@ -273,7 +273,7 @@ BOOL myadTaskManualStop = NO;
NSDate* curRunTime = [NSDate date]; NSDate* curRunTime = [NSDate date];
NSTimeInterval elapsed = [curRunTime timeIntervalSinceDate:self->lastRun]; NSTimeInterval elapsed = [curRunTime timeIntervalSinceDate:self->lastRun];
if (elapsed >= 30) { if (elapsed >= 60) {
[self start]; [self start];
} else { } else {
NSString* appId = [self frontMostAppId]; NSString* appId = [self frontMostAppId];