新增对账单下载

This commit is contained in:
qiyunfanbo126.com 2024-08-29 22:45:30 +08:00
parent 1712f90433
commit bc00864737
2 changed files with 3 additions and 1 deletions

View File

@ -6,6 +6,7 @@ import (
"qteam/app/constants/errorcode" "qteam/app/constants/errorcode"
"qteam/app/models/ordersmodel" "qteam/app/models/ordersmodel"
"qteam/app/third/youchu" "qteam/app/third/youchu"
"qteam/app/utils"
"qteam/config" "qteam/config"
"strconv" "strconv"
"strings" "strings"
@ -45,6 +46,7 @@ func ClearUnpayOrder() {
} }
func DownLoadAccountBill() { func DownLoadAccountBill() {
utils.Log(nil, "down load bill")
client := youchu.NewYouChuClient(config.GetConf().YouChu) client := youchu.NewYouChuClient(config.GetConf().YouChu)
code, rs := client.AccountBillQuery() code, rs := client.AccountBillQuery()
fmt.Println(rs) fmt.Println(rs)

View File

@ -10,5 +10,5 @@ import (
*/ */
func RegisterSchedule(c *cron.Cron) { func RegisterSchedule(c *cron.Cron) {
c.AddFunc("@every 1m", ClearUnpayOrder) c.AddFunc("@every 1m", ClearUnpayOrder)
c.AddFunc("0 0 9 * *", ClearUnpayOrder) c.AddFunc("0 0 9 * *", DownLoadAccountBill)
} }