From 5d92b04181ac0d04f46392eda88602894509a3f3 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Sun, 10 Sep 2023 14:53:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJuPublic.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJuPublic.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/SrcJuPublic.js b/SrcJuPublic.js index 4d20de65..bc7b6553 100644 --- a/SrcJuPublic.js +++ b/SrcJuPublic.js @@ -153,4 +153,11 @@ function getYiData(type,od) { function jianfan(str,x) { require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcSimple.js'); return PYStr(str,x); +} +//重定义打印日志,只允许调试模式下打印 +var logx = log; +log = function(msg){ + if(getMyVar("SrcJu_调试模式")){ + logx(msg); + } } \ No newline at end of file