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) }