From acd87dbd5b74dea613f43bd5fda6d1740fd2b9aa Mon Sep 17 00:00:00 2001 From: huangjuajun <102564160@qq.com> Date: Tue, 31 May 2022 10:42:26 +0800 Subject: [PATCH] =?UTF-8?q?add=20Reverse:for=20v1.1.9=20=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pay/init.go | 2 +- pay/logs/zyos_website.logs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 pay/logs/zyos_website.logs diff --git a/pay/init.go b/pay/init.go index dfa82dd..25817ef 100644 --- a/pay/init.go +++ b/pay/init.go @@ -26,7 +26,7 @@ func Init(host, name, user, psw string) error { cfg.MaxLifetime = 30 cfg.MaxOpenConns = 100 cfg.MaxIdleConns = 100 - cfg.Path = "logs/%s.logs" + cfg.Path = "./logs/%s.logs" if err := db.InitDB(&cfg); err != nil { return err } diff --git a/pay/logs/zyos_website.logs b/pay/logs/zyos_website.logs new file mode 100644 index 0000000..504dd55 --- /dev/null +++ b/pay/logs/zyos_website.logs @@ -0,0 +1,2 @@ +[xorm] [info] 2022/05/31 10:40:31.829104 [SQL] SELECT `id`, `channel_id`, `identifier`, `master_id`, `master_nickname`, `app_id` FROM `pay_channel_master` WHERE (app_id = ?) AND (identifier = ?) LIMIT 1 [35618318 mall] - 28.9565ms +[xorm] [info] 2022/05/31 10:41:41.231871 [SQL] SELECT `id`, `channel_id`, `identifier`, `master_id`, `master_nickname`, `app_id` FROM `pay_channel_master` WHERE (app_id = ?) AND (identifier = ?) LIMIT 1 [35618318 mall] - 24.9118ms