game2006api/webapp/mt/StakingVip.php
hujiabin 3ddb202c62 1
2024-09-18 16:41:00 +08:00

45 lines
917 B
PHP

<?php
namespace mt;
use phpcommon;
class StakingVip {
const GAIN_GOLD = 1;
const HERO_UP = 2;
const ACCOUNT_TIMES = 3;
const GOLD_CUT_DOWN = 4;
const DIAMOND_CUT_DOWN = 5;
const ACCOUNT_LUCKY_INC = 6;
public static function find($lv)
{
foreach (self::getMetaList() as $meta){
if ($meta['rank'] == $lv){
return $meta;
}
}
return array();
}
// public static function exportRights($lv){
// $meta = self::find($lv);
// if (!$meta || empty($meta['rights'])){
// return array();
// }
// $rights = explode('|',$meta['rights']);
// }
protected static function getMetaList()
{
if (!self::$metaList) {
self::$metaList = getMetaTable('stakingVip@stakingVip.php');
}
return self::$metaList;
}
protected static $metaList;
}