1
This commit is contained in:
parent
6026b3e729
commit
1fc917a116
@ -82,7 +82,7 @@ func (this *vip) Add(accountAddress string, val string, idx int64, valField stri
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *vip) AddEx(accountAddress string, val string, idx int64, valField string, idxField string,
|
func (this *vip) Replace(accountAddress string, val string, idx int64, valField string, idxField string,
|
||||||
extKv [][]string) bool {
|
extKv [][]string) bool {
|
||||||
this.lock.Lock()
|
this.lock.Lock()
|
||||||
defer this.lock.Unlock()
|
defer this.lock.Unlock()
|
||||||
@ -215,12 +215,12 @@ func (this *vip) RecalcEsCecConvert(accountAddress string) error {
|
|||||||
maxIdx = lastWithdraw.idx
|
maxIdx = lastWithdraw.idx
|
||||||
}
|
}
|
||||||
if lastDeposit != nil {
|
if lastDeposit != nil {
|
||||||
this.AddEx(accountAddress, bnTotal.String(), maxIdx, "escec_convert", "deposit_withdraw_last_src_idx",
|
this.Replace(accountAddress, bnTotal.String(), maxIdx, "escec_convert", "deposit_withdraw_last_src_idx",
|
||||||
[][]string {
|
[][]string {
|
||||||
{"last_convert_time", q5.ToString(lastDeposit.chainTimestamp)},
|
{"last_convert_time", q5.ToString(lastDeposit.chainTimestamp)},
|
||||||
})
|
})
|
||||||
} else if lastWithdraw != nil {
|
} else if lastWithdraw != nil {
|
||||||
this.AddEx(accountAddress, "0", maxIdx, "escec_convert", "deposit_withdraw_last_src_idx",
|
this.Replace(accountAddress, "0", maxIdx, "escec_convert", "deposit_withdraw_last_src_idx",
|
||||||
[][]string {
|
[][]string {
|
||||||
{"last_convert_time", q5.ToString(lastWithdraw.chainTimestamp)},
|
{"last_convert_time", q5.ToString(lastWithdraw.chainTimestamp)},
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user