From bc00864737e956a81592e530e69cfde4153b52e4 Mon Sep 17 00:00:00 2001 From: "qiyunfanbo126.com" <815699> Date: Thu, 29 Aug 2024 22:45:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=AF=B9=E8=B4=A6=E5=8D=95?= =?UTF-8?q?=E4=B8=8B=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/console/command.go | 2 ++ app/console/kernel.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/console/command.go b/app/console/command.go index e05243f..8149115 100644 --- a/app/console/command.go +++ b/app/console/command.go @@ -6,6 +6,7 @@ import ( "qteam/app/constants/errorcode" "qteam/app/models/ordersmodel" "qteam/app/third/youchu" + "qteam/app/utils" "qteam/config" "strconv" "strings" @@ -45,6 +46,7 @@ func ClearUnpayOrder() { } func DownLoadAccountBill() { + utils.Log(nil, "down load bill") client := youchu.NewYouChuClient(config.GetConf().YouChu) code, rs := client.AccountBillQuery() fmt.Println(rs) diff --git a/app/console/kernel.go b/app/console/kernel.go index 375c3b3..88696b9 100644 --- a/app/console/kernel.go +++ b/app/console/kernel.go @@ -10,5 +10,5 @@ import ( */ func RegisterSchedule(c *cron.Cron) { c.AddFunc("@every 1m", ClearUnpayOrder) - c.AddFunc("0 0 9 * *", ClearUnpayOrder) + c.AddFunc("0 0 9 * *", DownLoadAccountBill) }