1
This commit is contained in:
parent
5bcba3451f
commit
80961d82c5
@ -82,7 +82,7 @@ class Staking extends BaseModel {
|
||||
$stakingDto = self::toDto($row);
|
||||
if ($stakingDto['status'] == self::STAKING_STATUS) {
|
||||
if ($stakingDto['remain_days'] > 0) {
|
||||
$totalValue += $stakingDto['cec_value'];
|
||||
$totalValue += $stakingDto['stake_usd_value'];
|
||||
} else {
|
||||
}
|
||||
}
|
||||
@ -235,7 +235,8 @@ class Staking extends BaseModel {
|
||||
'item_id' => $row['item_id'],
|
||||
'status' => $row['status'],
|
||||
'stacked_num' => $row['stacked_num'],
|
||||
'cec_value' => $stakingMeta['stake_value']
|
||||
'cec_value' => $stakingMeta['stake_value'],
|
||||
'stake_usd_value' => $stakingMeta['stake_usd_value'],
|
||||
);
|
||||
$passedDays = intval(((myself()->_getNowDaySeconds()) -
|
||||
(myself()->_getDaySeconds($row['start_time']) + 3600 * 24)) /
|
||||
|
Loading…
x
Reference in New Issue
Block a user