Showing
1 changed file
with
13 additions
and
4 deletions
| @@ -79,13 +79,22 @@ export class WDSystemShare implements WDShareInterface { | @@ -79,13 +79,22 @@ export class WDSystemShare implements WDShareInterface { | ||
| 79 | } | 79 | } |
| 80 | 80 | ||
| 81 | generateShareLink(shareContent: ShareContentLink) { | 81 | generateShareLink(shareContent: ShareContentLink) { |
| 82 | - let link = "https://peopledailychinahosactivity.drcn.agconnect.link/?deeplink=" + encodeURI(shareContent.deeplink) | ||
| 83 | - link += "&harmonyos_deeplink=" + encodeURI(shareContent.deeplink) | 82 | + let link = "https://peopledailychinahosactivity.drcn.agconnect.link?deeplink=" + encodeURIComponent(shareContent.deeplink) |
| 83 | + | ||
| 84 | + link += "&harmonyos_deeplink=" + encodeURIComponent(shareContent.deeplink) | ||
| 84 | link += "&harmonyos_package_name=com.peopledailychina.hosactivity" | 85 | link += "&harmonyos_package_name=com.peopledailychina.hosactivity" |
| 85 | - link += "&harmonyos_fallback_url=" + encodeURI(shareContent.link) | 86 | + link += "&harmonyos_fallback_url=" + encodeURIComponent(shareContent.link) |
| 87 | + | ||
| 88 | + // link += "&android_deeplink=" + encodeURIComponent(shareContent.deeplink) | ||
| 89 | + // link += "&android_fallback_url=" + encodeURIComponent(shareContent.link) | ||
| 90 | + // | ||
| 91 | + // link += "&ios_link=" + encodeURIComponent(shareContent.deeplink) | ||
| 92 | + // link += "&ios_fallback_url=" + encodeURIComponent(shareContent.link) | ||
| 93 | + | ||
| 94 | + link += "&preview_type=1" | ||
| 86 | link += "&landing_page_type=1" | 95 | link += "&landing_page_type=1" |
| 87 | // link += "&social_desc=" + encodeURIComponent(shareContent.desc || " ") | 96 | // link += "&social_desc=" + encodeURIComponent(shareContent.desc || " ") |
| 88 | - // link += "&social_image=" + encodeURI(shareContent.icon || " ") | 97 | + // link += "&social_image=" + encodeURIComponent(shareContent.icon || " ") |
| 89 | // link += "&social_title=" + encodeURIComponent(shareContent.title) | 98 | // link += "&social_title=" + encodeURIComponent(shareContent.title) |
| 90 | link += "®ion_id=0" | 99 | link += "®ion_id=0" |
| 91 | return link | 100 | return link |
-
Please register or login to post a comment