game2005api/webapp/mt/SeasonPoint.php
2021-11-22 11:08:31 +08:00

38 lines
812 B
PHP

<?php
namespace mt;
use phpcommon;
class SeasonPoint {
public static function get($id)
{
return array_key_exists($id, self::getMetaList()) ? self::getMetaList()[$id] : null;
}
public static function getOldSeasonPoint($id)
{
$meta = self::get($id);
return array(
'id' => $meta['id'],
'min' => $meta['min_point'],
'max' => $meta['max_point'],
'des' => $meta['des'],
'topoint' => $meta['topoint'],
'is_protect' => $meta['is_protect'],
);
}
protected static function getMetaList()
{
if (!self::$metaList) {
self::$metaList = getMetaTable('seasomPoint@seasomPoint.php');
}
return self::$metaList;
}
protected static $metaList;
}