diff --git a/fir_client/src/components/FirDownload.vue b/fir_client/src/components/FirDownload.vue index 90be833..b4730e3 100644 --- a/fir_client/src/components/FirDownload.vue +++ b/fir_client/src/components/FirDownload.vue @@ -581,9 +581,16 @@ } - if (this.currentappinfo.wxredirect) { - if (this.mcurrentappinfo.binary_url && this.agent !== '' && this.wrong === false) { - window.location.href = this.mcurrentappinfo.binary_url + if (this.mcurrentappinfo.binary_url && !this.wrong) { + if (this.agent === 'wxandroid' || this.agent === 'wxapple') { + if (this.currentappinfo.wxredirect) { + window.location.href = this.mcurrentappinfo.binary_url; + return; + } + } + if (this.agent === 'apple' || this.agent === 'android') { + window.location.href = this.mcurrentappinfo.binary_url; + return; } } if (this.currentappinfo.screenshots && this.currentappinfo.screenshots.length > 0) { diff --git a/fir_client/src/components/ShortDownload.vue b/fir_client/src/components/ShortDownload.vue index fb588ae..7e78129 100644 --- a/fir_client/src/components/ShortDownload.vue +++ b/fir_client/src/components/ShortDownload.vue @@ -563,9 +563,16 @@ } - if (this.currentappinfo.wxredirect) { - if (this.mcurrentappinfo.binary_url && this.agent !== '' && this.wrong === false) { - window.location.href = this.mcurrentappinfo.binary_url + if (this.mcurrentappinfo.binary_url && !this.wrong) { + if (this.agent === 'wxandroid' || this.agent === 'wxapple') { + if (this.currentappinfo.wxredirect) { + window.location.href = this.mcurrentappinfo.binary_url; + return; + } + } + if (this.agent === 'apple' || this.agent === 'android') { + window.location.href = this.mcurrentappinfo.binary_url; + return; } } if (this.currentappinfo.screenshots && this.currentappinfo.screenshots.length > 0) {