1
This commit is contained in:
parent
6d43cacd1f
commit
2cb497f63a
@ -61,15 +61,20 @@ class RewardsCec extends BaseModel
|
||||
$week3 = $week1 + 60*60*24*14 ;
|
||||
$week4 = $week1 + 60*60*24*21 ;
|
||||
$state = $row['reward1'] && $row['reward2'] && $row['reward3'] && $row['reward4'] ? 1 : 0;
|
||||
$pendingNum = $row['reward_cec'];
|
||||
if ($row['reward1']){
|
||||
$pendingNum -= $pendingNum*0.25;
|
||||
}elseif ($row['reward2']){
|
||||
$pendingNum -= $pendingNum*0.5;
|
||||
}elseif ($row['reward3']){
|
||||
$pendingNum -= $pendingNum*0.75;
|
||||
}elseif ($row['reward4']){
|
||||
// $pendingNum = $row['reward_cec'];
|
||||
$pendingNum = 0;
|
||||
if (!$row['reward1']){
|
||||
// $pendingNum -= $pendingNum*0.25;
|
||||
$pendingNum += 1;
|
||||
}elseif (!$row['reward2']){
|
||||
// $pendingNum -= $pendingNum*0.5;
|
||||
$pendingNum += 1;
|
||||
}elseif (!$row['reward3']){
|
||||
// $pendingNum -= $pendingNum*0.75;
|
||||
$pendingNum += 1;
|
||||
}elseif (!$row['reward4']){
|
||||
// $pendingNum = 0;
|
||||
$pendingNum += 1;
|
||||
}
|
||||
return array(
|
||||
'hash_rate' => $row['power'],
|
||||
|
Loading…
x
Reference in New Issue
Block a user