fix
This commit is contained in:
parent
ba400b72e8
commit
b841e5aa2e
@ -57,8 +57,8 @@ class StakingVipService extends BaseService
|
|||||||
$nextlvcfg = mt\StakingVip::find($lv + 1);
|
$nextlvcfg = mt\StakingVip::find($lv + 1);
|
||||||
$upgraderequire = $cfg['require'];
|
$upgraderequire = $cfg['require'];
|
||||||
if ($nextlvcfg && $convercurExec >= $upgraderequire) {
|
if ($nextlvcfg && $convercurExec >= $upgraderequire) {
|
||||||
$details['cur'] = $cfg['thisPoint'] * ($convercurExec - $upgraderequire) / ($nextlvcfg['require'] - $upgraderequire);
|
$details['cur'] = intval($cfg['thisPoint'] * ($convercurExec - $upgraderequire) / ($nextlvcfg['require'] - $upgraderequire));
|
||||||
} else {
|
} else if (!$nextlvcfg) {
|
||||||
$details['cur'] = $details['target'];
|
$details['cur'] = $details['target'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user