fix
This commit is contained in:
parent
1d39d36a23
commit
6cc1f1a507
@ -238,6 +238,8 @@ func (this *VIPApi) Details(c *gin.Context) {
|
|||||||
nextlvcfg := mt.Table.StakingVip.GetById(q5.SafeToInt64(rspObj.Info.Level + 1))
|
nextlvcfg := mt.Table.StakingVip.GetById(q5.SafeToInt64(rspObj.Info.Level + 1))
|
||||||
if nextlvcfg != nil && convercurExec >= cfg.GetRequire() {
|
if nextlvcfg != nil && convercurExec >= cfg.GetRequire() {
|
||||||
rspObj.Info.Cur = cfg.GetThisPoint() * (convercurExec - cfg.GetRequire()) / (nextlvcfg.GetRequire() - cfg.GetRequire())
|
rspObj.Info.Cur = cfg.GetThisPoint() * (convercurExec - cfg.GetRequire()) / (nextlvcfg.GetRequire() - cfg.GetRequire())
|
||||||
|
} else if nextlvcfg == nil {
|
||||||
|
rspObj.Info.Cur = rspObj.Info.Target
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user