feat(gift): 선물 상세 딥링크를 연결한다
This commit is contained in:
@@ -5,6 +5,7 @@ enum AppDeepLinkAction {
|
||||
case userCreatorChat(roomId: Int)
|
||||
case content(contentId: Int)
|
||||
case series(seriesId: Int)
|
||||
case giftDetail(applicationNo: String)
|
||||
case community(creatorId: Int, postId: Int?)
|
||||
case message
|
||||
case audition
|
||||
@@ -70,6 +71,9 @@ enum AppDeepLinkHandler {
|
||||
guard seriesId > 0 else { return }
|
||||
AppState.shared.setAppStep(step: .seriesDetail(seriesId: seriesId))
|
||||
|
||||
case .giftDetail(let applicationNo):
|
||||
AppState.shared.setAppStep(step: .giftDetail(applicationNo: applicationNo))
|
||||
|
||||
case .community(let creatorId, let postId):
|
||||
guard creatorId > 0 else { return }
|
||||
|
||||
@@ -148,6 +152,13 @@ enum AppDeepLinkHandler {
|
||||
return .series(seriesId: value)
|
||||
}
|
||||
|
||||
if let value = queryMap["deeplinkvalue"]?.trimmingCharacters(in: .whitespacesAndNewlines),
|
||||
value.caseInsensitiveCompare("GIFT_DETAIL") == .orderedSame,
|
||||
let applicationNo = queryMap["deeplinkid"]?.trimmingCharacters(in: .whitespacesAndNewlines),
|
||||
!applicationNo.isEmpty {
|
||||
return .giftDetail(applicationNo: applicationNo)
|
||||
}
|
||||
|
||||
if let communityId = queryMap["community_id"], let value = Int(communityId), value > 0 {
|
||||
return .community(creatorId: value, postId: communityPostId(queryMap: queryMap))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user