라이브, 콘텐츠, 채널 공유하기
- 파라미터 키, 값 각각 인코딩 적용
This commit is contained in:
@@ -202,17 +202,24 @@ final class ContentDetailViewModel: ObservableObject {
|
||||
func shareAudioContent(contentImage: String, contentTitle: String) {
|
||||
isLoading = true
|
||||
|
||||
let shareUrl = "https://voiceon.onelink.me/RkTm?" +
|
||||
"af_dp=voiceon://" +
|
||||
"&deep_link_value=content" +
|
||||
"&deep_link_sub5=\(contentId)" +
|
||||
"&af_og_title=\(contentTitle)" +
|
||||
"&af_og_description=지금 보이스온에서 이 콘텐츠 감상하기" +
|
||||
"&af_og_image=\(contentImage)"
|
||||
var params = [
|
||||
"af_dp": "voiceon://",
|
||||
"deep_link_value": "content",
|
||||
"deep_link_sub5": "\(contentId)",
|
||||
"af_og_title": contentTitle,
|
||||
"af_og_description": "지금 보이스온에서 이 콘텐츠 감상하기",
|
||||
"af_og_image": contentImage
|
||||
]
|
||||
|
||||
if let shareUrl = createOneLinkUrlWithURLComponents(params: params) {
|
||||
self.shareMessage = shareUrl
|
||||
self.isShowShareView = true
|
||||
} else {
|
||||
self.errorMessage = "공유링크를 생성하지 못했습니다.\n다시 시도해 주세요."
|
||||
self.isShowPopup = true
|
||||
}
|
||||
|
||||
self.isLoading = false
|
||||
self.shareMessage = shareUrl
|
||||
self.isShowShareView = true
|
||||
}
|
||||
|
||||
func registerComment(comment: String, isSecret: Bool) {
|
||||
|
Reference in New Issue
Block a user