Commit 850c4711 authored by liziwl's avatar liziwl
Browse files

跳转关闭

parent 822415d9
Loading
Loading
Loading
Loading
+9 −6
Original line number Diff line number Diff line
ENABLE_LOG = false;
ENABLE_FOR_AUDIT = true;

function post_to_wx() {
    var obj = {
@@ -21,6 +22,7 @@ function handleOutURL(url, whitelist_flag, file_flag, file_ext) {
    if (ENABLE_LOG) {
        console.log("劫持链接 " + url);
    }
    if (!ENABLE_FOR_AUDIT) {
        wx.miniProgram.navigateTo({
            url: '/pages/index/redirect?outURL=' + encodeURIComponent(url) +
                '&inwhitelist=' + whitelist_flag +
@@ -28,6 +30,7 @@ function handleOutURL(url, whitelist_flag, file_flag, file_ext) {
                '&ext=' + file_ext,
        });
    }
}

function override_onclick(event) {
    /// 优化小程序内的文件或者外链显示