This commit is contained in:
aozhiwei 2024-09-24 16:28:31 +08:00
parent 0bbb765c8d
commit 12ba69e75f
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ func (this *vip) AddEx(accountAddress string, val string, idx int64, valField st
updateKv = append(updateKv, extKv...) updateKv = append(updateKv, extKv...)
insertKv = append(insertKv, extKv...) insertKv = append(insertKv, extKv...)
if ds.Next() { if ds.Next() {
if q5.ToInt64(ds.GetByName(idxField)) <= idx { if q5.ToInt64(ds.GetByName(idxField)) >= idx {
return true return true
} }
err1, _, _ := f5.GetGoStyleDb().NewUpdate( err1, _, _ := f5.GetGoStyleDb().NewUpdate(

View File

@ -95,7 +95,7 @@ func (this *stackingCec) saveToDb(ds *f5.DataSet) bool {
return false return false
} }
} else if eventName == EVENT_NAME_UNSTAKE_CEC { } else if eventName == EVENT_NAME_UNSTAKE_CEC {
if service.Vip.Add( if !service.Vip.Add(
p.Account, p.Account,
"-" + p.Amount, "-" + p.Amount,
idx, idx,