...
This commit is contained in:
parent
db134d5e9e
commit
dd1f961d57
@ -133,14 +133,14 @@ fun SettingsScreen(onAuthSuccess: () -> Unit) {
|
|||||||
while (true) {
|
while (true) {
|
||||||
val now = java.time.LocalTime.now(java.time.ZoneId.of("Asia/Seoul"))
|
val now = java.time.LocalTime.now(java.time.ZoneId.of("Asia/Seoul"))
|
||||||
// 08:30 ~ 15:30 사이이고, 키값이 최소한 하나라도 존재할 때 자동 실행
|
// 08:30 ~ 15:30 사이이고, 키값이 최소한 하나라도 존재할 때 자동 실행
|
||||||
// if (now.isAfter(java.time.LocalTime.of(7, 40)) && now.isBefore(java.time.LocalTime.of(18, 0))) {
|
if (now.isAfter(java.time.LocalTime.of(7, 40)) && now.isBefore(java.time.LocalTime.of(18, 0))) {
|
||||||
// if (config.realAppKey.isNotEmpty() && config.vtsAppKey.isNotEmpty() && config.embedModelPath.isNotEmpty() && config.modelPath.isNotEmpty()) {
|
if (config.realAppKey.isNotEmpty() && config.vtsAppKey.isNotEmpty() && config.embedModelPath.isNotEmpty() && config.modelPath.isNotEmpty()) {
|
||||||
// SystemSleepPreventer.wakeDisplay() // 모니터 켜기
|
SystemSleepPreventer.wakeDisplay() // 모니터 켜기
|
||||||
// statusMessage = "⏰ 자동 실행 시간(08:30)입니다. 시스템을 가동합니다."
|
statusMessage = "⏰ 자동 실행 시간(08:30)입니다. 시스템을 가동합니다."
|
||||||
// authenticateAndStart()
|
authenticateAndStart()
|
||||||
// break // 성공하면 루프 탈출
|
break // 성공하면 루프 탈출
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
delay(30_000) // 1분마다 시간 체크
|
delay(30_000) // 1분마다 시간 체크
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -281,7 +281,7 @@ fun SettingsScreen(onAuthSuccess: () -> Unit) {
|
|||||||
path = path.drop(1)
|
path = path.drop(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (path.endsWith(".gguf")) config = config.copy(modelPath = path)
|
if (path.endsWith(".gguf")) config = config.copy(embedModelPath = path)
|
||||||
true // 이벤트 소비 처리
|
true // 이벤트 소비 처리
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user