Skip to content

Commit f49f1f3

Browse files
committed
[FIX/#380] iOS 분기처리 추가
1 parent 9ed1677 commit f49f1f3

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

feature/intern/src/main/java/com/terning/feature/intern/InternViewModel.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,13 @@ class InternViewModel @Inject constructor(
7979
"PERIOD" to internInfo.workingPeriod,
8080
"A_E" to "kakaolink",
8181
"A_E_D" to "intern",
82+
"I_E" to "kakaolink",
83+
"I_E_D" to "jobDetail",
8284
"redirect" to "intern",
8385
"internId" to announcementId,
84-
)
86+
"action" to "jobDetail",
87+
"JOB_ID" to announcementId
88+
)
8589
kakaoUtil.shareToKakaoTalk(templateArgs)
8690
}
8791
}

feature/main/src/main/java/com/terning/feature/main/MainActivity.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,9 @@ class MainActivity : ComponentActivity() {
5454
if (uriString.isNullOrEmpty()) return Triple(null, null, null)
5555

5656
val host = uri.host
57-
val redirect = uri.getQueryParameter(REDIRECT)
58-
val internId = uri.getQueryParameter(INTERN_ID)
57+
val redirect = uri.getQueryParameter("redirect") ?: uri.getQueryParameter("action")
58+
val id = uri.getQueryParameter("internId") ?: uri.getQueryParameter("id")
59+
5960

6061
if (!intent.getBooleanExtra(ALREADY_TRACKED, false)
6162
&& intent.getBooleanExtra(FROM_NOTIFICATION, false)
@@ -68,7 +69,7 @@ class MainActivity : ComponentActivity() {
6869

6970
intent.putExtra(ALREADY_TRACKED, true)
7071

71-
return Triple(host, redirect, internId)
72+
return Triple(host, redirect, id)
7273
}
7374

7475
companion object {

0 commit comments

Comments
 (0)