From 80961d82c5a09a1859ed5f2b85a5b27b38a0f824 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 5 Sep 2023 18:45:34 +0800 Subject: [PATCH] 1 --- webapp/models/Staking.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/webapp/models/Staking.php b/webapp/models/Staking.php index a01c19d9..71bb4789 100644 --- a/webapp/models/Staking.php +++ b/webapp/models/Staking.php @@ -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)) /