diff --git a/combining.html b/combining.html index 765c96f..61d99fa 100644 --- a/combining.html +++ b/combining.html @@ -579,7 +579,14 @@ } upWXSmallProgramYouBank(); } else { - window.location.replace(res.data.redirect_url); + let url; + if (res.data.redirect_url.indexOf("?") == -1) { + url = res.data.redirect_url + "?env_version=trial" + } else { + url = res.data.redirect_url + "&env_version=trial" + } + window.location.replace(url); + // window.location.replace(res.data.redirect_url); } this.getProductDetail(); } diff --git a/reduce.html b/reduce.html index cfebf91..c451fa3 100644 --- a/reduce.html +++ b/reduce.html @@ -301,8 +301,15 @@ this.publicCollection(res.data.order_number); } else { this.loading = false; + let url; + if (res.data.redirect_url.indexOf("?") == -1) { + url = res.data.redirect_url + "?env_version=trial" + } else { + url = res.data.redirect_url + "&env_version=trial" + } + window.location.replace(url); //唤起微信福利官小程序 - window.location.replace(res.data.redirect_url); + // window.location.replace(res.data.redirect_url); } // } diff --git a/wx-combining.html b/wx-combining.html index 3538059..463d4ab 100644 --- a/wx-combining.html +++ b/wx-combining.html @@ -556,7 +556,13 @@ } upWXSmallProgramYouBank(); } else { - window.location.replace(res.data.redirect_url); + let url; + if (res.data.redirect_url.indexOf("?") == -1) { + url = res.data.redirect_url + "?env_version=trial" + } else { + url = res.data.redirect_url + "&env_version=trial" + } + window.location.replace(url); } self.timeGet = setInterval(() => { self.getProductDetail(); //