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...)
insertKv = append(insertKv, extKv...)
if ds.Next() {
if q5.ToInt64(ds.GetByName(idxField)) <= idx {
if q5.ToInt64(ds.GetByName(idxField)) >= idx {
return true
}
err1, _, _ := f5.GetGoStyleDb().NewUpdate(

View File

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