1
This commit is contained in:
parent
9490ed4632
commit
cec26567d4
@ -52,6 +52,9 @@ class Staking extends BaseModel {
|
||||
|
||||
public static function getStakingTotalValue()
|
||||
{
|
||||
if (SERVER_ENV != _ONLINE) {
|
||||
myself()->_setTimeOffset(3600 * 24 * 31);
|
||||
}
|
||||
$totalValue = 0;
|
||||
$rows = self::all(myself()->_getAddress());
|
||||
foreach ($rows as $row) {
|
||||
@ -59,6 +62,7 @@ class Staking extends BaseModel {
|
||||
if ($stakingDto['status'] == self::STAKING_STATUS) {
|
||||
if ($stakingDto['remain_days'] > 0) {
|
||||
$totalValue += $stakingDto['cec_value'];
|
||||
} else {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user