新增对账单下载
This commit is contained in:
parent
1712f90433
commit
bc00864737
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue