This commit is contained in:
aozhiwei 2023-08-30 15:04:03 +08:00
parent 7eac65b4ed
commit 9490ed4632
2 changed files with 3 additions and 2 deletions

View File

@ -16,6 +16,7 @@ class Staking(object):
], ],
'response': [ 'response': [
_common.RspHead(), _common.RspHead(),
['pool_size', '', '池子数量'],
['total_staking_value', '', '质押总ceg价值,包含利息'], ['total_staking_value', '', '质押总ceg价值,包含利息'],
['daily_staking_value', '', '当天总ceg价值,包含利息'], ['daily_staking_value', '', '当天总ceg价值,包含利息'],
['planet', _common.Staking(), '星球质押'], ['planet', _common.Staking(), '星球质押'],

View File

@ -57,8 +57,8 @@ class Staking extends BaseModel {
foreach ($rows as $row) { foreach ($rows as $row) {
$stakingDto = self::toDto($row); $stakingDto = self::toDto($row);
if ($stakingDto['status'] == self::STAKING_STATUS) { if ($stakingDto['status'] == self::STAKING_STATUS) {
if ($stakingDto['remain_days'] <= 0) { if ($stakingDto['remain_days'] > 0) {
$totalValue += $stakingDto['ceg_value']; $totalValue += $stakingDto['cec_value'];
} }
} }
} }