This commit is contained in:
aozhiwei 2023-08-25 16:11:07 +08:00
parent 7fbb1cc388
commit dae1bd48fa

View File

@ -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;
}
}