no sync
This commit is contained in:
parent
ea5a11fa17
commit
e0d8575b78
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue