1
This commit is contained in:
parent
a270036a59
commit
1dc80b9ce3
@ -173,6 +173,7 @@ func (this *stackingCec) apply(idx int64, eventName string,
|
||||
return false
|
||||
}
|
||||
var growthValueInt64 = bnNewGrowthValue.Rsh(bnNewGrowthValue, DECIMALS).Int64()
|
||||
newVipLv := this.calcVipLv(growthValueInt64)
|
||||
bnNewAmount.Add(bnNewAmount, bnAmount)
|
||||
{
|
||||
nowTime := f5.GetApp().GetRealSeconds()
|
||||
@ -187,6 +188,7 @@ func (this *stackingCec) apply(idx int64, eventName string,
|
||||
{"amount", bnNewAmount.String()},
|
||||
{"growth_value", bnNewGrowthValue.String()},
|
||||
{"growth_value_int64", q5.ToString(growthValueInt64)},
|
||||
{"vip_lv", q5.ToString(newVipLv)},
|
||||
{"last_apply_record_idx", q5.ToString(idx)},
|
||||
{"modifytime", q5.ToString(nowTime)},
|
||||
},
|
||||
@ -194,13 +196,17 @@ func (this *stackingCec) apply(idx int64, eventName string,
|
||||
{"account_address", strings.ToLower(p.Account)},
|
||||
{"token_address", strings.ToLower(p.Token)},
|
||||
{"amount", bnNewAmount.String()},
|
||||
{"last_apply_record_idx", q5.ToString(idx)},
|
||||
{"growth_value", bnNewGrowthValue.String()},
|
||||
{"growth_value_int64", q5.ToString(growthValueInt64)},
|
||||
{"vip_lv", q5.ToString(0)},
|
||||
{"vip_lv", q5.ToString(newVipLv)},
|
||||
{"last_apply_record_idx", q5.ToString(idx)},
|
||||
{"createtime", q5.ToString(nowTime)},
|
||||
{"modifytime", q5.ToString(nowTime)},
|
||||
})
|
||||
return dbErr == nil
|
||||
}
|
||||
}
|
||||
|
||||
func (this *stackingCec) calcVipLv(growthValue int64) int32 {
|
||||
return 0
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user