1
This commit is contained in:
parent
7fbb1cc388
commit
dae1bd48fa
@ -2,6 +2,8 @@
|
||||
|
||||
namespace models;
|
||||
|
||||
require_once("mt/Stacking.php");
|
||||
|
||||
class Staking extends BaseModel {
|
||||
|
||||
const STAKING_STATUS = 0;
|
||||
@ -152,4 +154,13 @@ class Staking extends BaseModel {
|
||||
}
|
||||
}
|
||||
|
||||
public static function calcReward($row, &$reward)
|
||||
{
|
||||
$stakingMeta = mt\Staking::get($row['item_id']);
|
||||
if (!$stakingMeta) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user