From c26548a962744d300a5a21bc8508f337e47fbbbe Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Sat, 29 Jun 2024 09:32:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'drpy/drpy2.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- drpy/drpy2.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drpy/drpy2.js b/drpy/drpy2.js index 7c32f057..1fd17bc3 100644 --- a/drpy/drpy2.js +++ b/drpy/drpy2.js @@ -24,8 +24,11 @@ const cheerio = { // import 模板 from"https://ghproxy.net/https://raw.githubusercontent.com/hjdhnx/dr_py/main/js/模板.js"; // import {gbkTool} from 'https://ghproxy.net/https://raw.githubusercontent.com/hjdhnx/dr_py/main/libs/gbk.js' -console.log = function(s) { - log('drpy日志'); +var xlog = console.log; +console.log = function(msg) { + if (getMyVar("SrcJu_调试模式") || getItem("SrcJu_接口日志")) { + xlog(msg); + } } function init_test() {