-
Notifications
You must be signed in to change notification settings - Fork 18
251114_03_박승엽 #15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
251114_03_박승엽 #15
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -42,4 +42,8 @@ bin/ | |
| .vscode/ | ||
|
|
||
| ### Mac OS ### | ||
| .DS_Store | ||
| .DS_Store | ||
|
|
||
| .idea/ | ||
|
|
||
| .gradle/ | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,5 +1,6 @@ | ||||||||||||||||||||||||||||||
| plugins { | ||||||||||||||||||||||||||||||
| kotlin("jvm") version "2.0.21" | ||||||||||||||||||||||||||||||
| kotlin("jvm") version "2.2.0" | ||||||||||||||||||||||||||||||
| kotlin("plugin.serialization") version "2.2.0" | ||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| group = "com.survivalcoding" | ||||||||||||||||||||||||||||||
|
|
@@ -11,11 +12,19 @@ repositories { | |||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| dependencies { | ||||||||||||||||||||||||||||||
| testImplementation(kotlin("test")) | ||||||||||||||||||||||||||||||
| implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.9.0") | ||||||||||||||||||||||||||||||
| implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.6.0") | ||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| tasks.test { | ||||||||||||||||||||||||||||||
| useJUnitPlatform() | ||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| kotlin { | ||||||||||||||||||||||||||||||
| jvmToolchain(21) | ||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| kotlin { | ||||||||||||||||||||||||||||||
| jvmToolchain(17) | ||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||
| jvmToolchain(21) | ||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||
|
Comment on lines
+23
to
+30
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 중복된 Kotlin 툴체인 설정 제거 필요
-
-kotlin {
- jvmToolchain(21)
-}
-
-
-
kotlin {
jvmToolchain(21)
}📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -5,7 +5,7 @@ import java.time.format.DateTimeFormatter | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| class YukymController { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| val nowDate = LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-mm-dd")) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| val nowDate = LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd")) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| lateinit var nowTime: String | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -36,16 +36,16 @@ class YukymController { | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| val nowTime = LocalDateTime.now() | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| when { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| nowTime.hour >= 0 || nowTime.hour < 2 -> return timeDataOne.first().ty1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| nowTime.hour >= 4 || nowTime.hour < 6 -> return timeDataOne.first().ty2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| nowTime.hour >= 6 || nowTime.hour < 8 -> return timeDataOne.first().ty3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| nowTime.hour >= 8 || nowTime.hour < 10 -> return timeDataOne.first().ty4 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| nowTime.hour >= 10 || nowTime.hour < 12 -> return timeDataOne.first().ty5 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| nowTime.hour >= 12 || nowTime.hour < 14 -> return timeDataOne.first().ty6 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| nowTime.hour >= 16 || nowTime.hour < 18 -> return timeDataOne.first().ty7 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| nowTime.hour >= 18 || nowTime.hour < 20 -> return timeDataOne.first().ty8 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| nowTime.hour >= 20 || nowTime.hour < 22 -> return timeDataOne.first().ty9 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| nowTime.hour >= 22 || nowTime.hour < 24 -> return timeDataOne.first().ty10 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| nowTime.hour >= 0 && nowTime.hour < 2 -> return timeDataOne.first().ty1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| nowTime.hour >= 4 && nowTime.hour < 6 -> return timeDataOne.first().ty2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| nowTime.hour >= 6 && nowTime.hour < 8 -> return timeDataOne.first().ty3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| nowTime.hour >= 8 && nowTime.hour < 10 -> return timeDataOne.first().ty4 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| nowTime.hour >= 10 && nowTime.hour < 12 -> return timeDataOne.first().ty5 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| nowTime.hour >= 12 && nowTime.hour < 14 -> return timeDataOne.first().ty6 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| nowTime.hour >= 16 && nowTime.hour < 18 -> return timeDataOne.first().ty7 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| nowTime.hour >= 18 && nowTime.hour < 20 -> return timeDataOne.first().ty8 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| nowTime.hour >= 20 && nowTime.hour < 22 -> return timeDataOne.first().ty9 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| nowTime.hour >= 22 && nowTime.hour < 24 -> return timeDataOne.first().ty10 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
38
to
49
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 시간 범위 로직 누락 - 중요한 버그 시간 범위 로직이 OR(
현재 구현에서는 이 시간대에 다음 diff를 적용하여 누락된 시간대를 추가하세요: when {
nowTime.hour >= 0 && nowTime.hour < 2 -> return timeDataOne.first().ty1
+ nowTime.hour >= 2 && nowTime.hour < 4 -> return timeDataOne.first().ty11
nowTime.hour >= 4 && nowTime.hour < 6 -> return timeDataOne.first().ty2
nowTime.hour >= 6 && nowTime.hour < 8 -> return timeDataOne.first().ty3
nowTime.hour >= 8 && nowTime.hour < 10 -> return timeDataOne.first().ty4
nowTime.hour >= 10 && nowTime.hour < 12 -> return timeDataOne.first().ty5
nowTime.hour >= 12 && nowTime.hour < 14 -> return timeDataOne.first().ty6
+ nowTime.hour >= 14 && nowTime.hour < 16 -> return timeDataOne.first().ty7
nowTime.hour >= 16 && nowTime.hour < 18 -> return timeDataOne.first().ty7
nowTime.hour >= 18 && nowTime.hour < 20 -> return timeDataOne.first().ty8
nowTime.hour >= 20 && nowTime.hour < 22 -> return timeDataOne.first().ty9
nowTime.hour >= 22 && nowTime.hour < 24 -> return timeDataOne.first().ty10
}참고: Line 45의 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| return result | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
새 의존성 버전 확인 권장
kotlinx-serialization-json:1.9.0과kotlinx-datetime:0.6.0의존성이 추가되었습니다. 현재 코드에서는 아직 사용되지 않고 있습니다(YukymController.kt는 여전히java.time을 사용). 최신 버전과 보안 권고사항을 확인하세요.🌐 Web query:
💡 Result:
Latest stable kotlinx-serialization-json version: 1.9.0 (released June 27, 2025). [1] [2]
Sources:
🌐 Web query:
💡 Result:
The latest kotlinx-datetime release is v0.7.1 (released July 7, 2025). [1][2]
Sources:
[1] Kotlin/kotlinx-datetime — Releases (v0.7.1).
[2] kotlinx-datetime repository / README (usage and migration notes).
kotlinx-datetime버전 업데이트 필요kotlinx-datetime:0.6.0은 최신 버전v0.7.1(2025년 7월 7일 출시)보다 뒤떨어져 있습니다. 최신 버전으로 업데이트하세요. 한편,kotlinx-serialization-json:1.9.0은 현재 최신 버전입니다. 두 의존성 모두 현재 코드에서 아직 사용되지 않고 있습니다.🤖 Prompt for AI Agents