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