diff --git a/fir_client/src/components/FirDownload.vue b/fir_client/src/components/FirDownload.vue index 0746d6b..7c57ccc 100644 --- a/fir_client/src/components/FirDownload.vue +++ b/fir_client/src/components/FirDownload.vue @@ -793,7 +793,17 @@ export default { getShortAppinfo(data => { if (data.code === 1000) { if (data.redirect && data.data) { - window.location.href = data.data; + let href = data.data; + if (this.$route.query.password) { + if (href.indexOf('?') !== -1) { + if (href.indexOf('password=') === -1) { + href = href + '&password=' + this.$route.query.password + } + } else { + href = href + '?password=' + this.$route.query.password + } + } + window.location.href = href; return } if (data.ad && data.ad.ad_uri) { diff --git a/fir_client/src/components/ShortDownload.vue b/fir_client/src/components/ShortDownload.vue index bdbed7f..0c186a4 100644 --- a/fir_client/src/components/ShortDownload.vue +++ b/fir_client/src/components/ShortDownload.vue @@ -752,7 +752,17 @@ export default { getShortAppinfo(data => { if (data.code === 1000) { if (data.redirect && data.data) { - window.location.href = data.data; + let href = data.data; + if (this.$route.query.password) { + if (href.indexOf('?') !== -1) { + if (href.indexOf('password=') === -1) { + href = href + '&password=' + this.$route.query.password + } + } else { + href = href + '?password=' + this.$route.query.password + } + } + window.location.href = href; return } if (data.ad && data.ad.ad_uri) {