diff --git a/server/light_backtask/service/vip.go b/server/light_backtask/service/vip.go index cd42bbd1..bf4282ab 100644 --- a/server/light_backtask/service/vip.go +++ b/server/light_backtask/service/vip.go @@ -75,7 +75,7 @@ func (this *vip) AddEx(accountAddress string, val string, idx int64, valField st return true } -func (this *vip) recalcEsCecConvert(accountAddress string) error { +func (this *vip) RecalcEsCecConvert(accountAddress string) error { accountAddress = strings.ToLower(accountAddress) return nil } diff --git a/server/light_backtask/task/vester.go b/server/light_backtask/task/vester.go index 3d228a5e..c2fa35b2 100644 --- a/server/light_backtask/task/vester.go +++ b/server/light_backtask/task/vester.go @@ -5,6 +5,7 @@ import ( "f5" "main/mt" "main/constant" + "main/service" "jccommon" "fmt" "strings" @@ -124,6 +125,7 @@ func (this* vester) saveToDb(ds *f5.DataSet) bool { if err != nil { return false } + return service.Vip.RecalcEsCecConvert(p.Account) == nil } } else if eventName == VESTER_WITHDRAW_EVENT_NAME { p := new(jccommon.VesterWithdrawPo) @@ -142,6 +144,7 @@ func (this* vester) saveToDb(ds *f5.DataSet) bool { if err != nil { return false } + return service.Vip.RecalcEsCecConvert(p.Account) == nil } } else { panic(fmt.Sprintf("vester unknow event_name %s", eventName))