This commit is contained in:
aozhiwei 2024-09-23 17:03:51 +08:00
parent 85c4ed3088
commit 8da456a6ef
2 changed files with 4 additions and 1 deletions

View File

@ -75,7 +75,7 @@ func (this *vip) AddEx(accountAddress string, val string, idx int64, valField st
return true return true
} }
func (this *vip) recalcEsCecConvert(accountAddress string) error { func (this *vip) RecalcEsCecConvert(accountAddress string) error {
accountAddress = strings.ToLower(accountAddress) accountAddress = strings.ToLower(accountAddress)
return nil return nil
} }

View File

@ -5,6 +5,7 @@ import (
"f5" "f5"
"main/mt" "main/mt"
"main/constant" "main/constant"
"main/service"
"jccommon" "jccommon"
"fmt" "fmt"
"strings" "strings"
@ -124,6 +125,7 @@ func (this* vester) saveToDb(ds *f5.DataSet) bool {
if err != nil { if err != nil {
return false return false
} }
return service.Vip.RecalcEsCecConvert(p.Account) == nil
} }
} else if eventName == VESTER_WITHDRAW_EVENT_NAME { } else if eventName == VESTER_WITHDRAW_EVENT_NAME {
p := new(jccommon.VesterWithdrawPo) p := new(jccommon.VesterWithdrawPo)
@ -142,6 +144,7 @@ func (this* vester) saveToDb(ds *f5.DataSet) bool {
if err != nil { if err != nil {
return false return false
} }
return service.Vip.RecalcEsCecConvert(p.Account) == nil
} }
} else { } else {
panic(fmt.Sprintf("vester unknow event_name %s", eventName)) panic(fmt.Sprintf("vester unknow event_name %s", eventName))