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