1
This commit is contained in:
parent
1b772f7e27
commit
f859cfb6a8
@ -115,9 +115,12 @@ class StakingController extends BaseAuthedController {
|
||||
foreach ($rows as $row) {
|
||||
$stakingDto = Staking::toDto($row);
|
||||
if ($stakingDto && $stakingDto['trans_id'] == $transId) {
|
||||
if ($stakingDto['trans_id']) {
|
||||
|
||||
if ($stakingDto['remain_days'] <= 0) {
|
||||
$cegRewards = $stakingDto['total_rewards'];
|
||||
} else {
|
||||
$cegRewards = $stakingDto['total_rewards'] * 0.25;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
myself()->_rspData(array(
|
||||
|
Loading…
x
Reference in New Issue
Block a user