This commit is contained in:
lwl0608 2024-12-10 13:34:16 +08:00
parent ea5a11fa17
commit e0d8575b78
1 changed files with 6 additions and 1 deletions

View File

@ -9,6 +9,11 @@ import (
"time" "time"
) )
var NoSyncAppidMap = map[string]bool{
alipaycli.AppIdXinYiDaoLe: true,
alipaycli.AppIdLanXing02: true,
}
func (c *Cron) SyncAlipayBalance() { func (c *Cron) SyncAlipayBalance() {
logger.Info("SyncAlipayBalance Start") logger.Info("SyncAlipayBalance Start")
for range time.Tick(time.Second * 30) { for range time.Tick(time.Second * 30) {
@ -16,7 +21,7 @@ func (c *Cron) SyncAlipayBalance() {
allClients := alipaycli.GetAllAlipayClients() allClients := alipaycli.GetAllAlipayClients()
list := make([]*alipaycli.AlipayClient, 0) list := make([]*alipaycli.AlipayClient, 0)
for k, v := range allClients { for k, v := range allClients {
if k == alipaycli.AppIdXinYiDaoLe { if NoSyncAppidMap[k] {
continue continue
} }
list = append(list, v) list = append(list, v)