This commit is contained in:
aozhiwei 2024-10-10 14:13:18 +08:00
parent ac5ac6fbf1
commit 3585791680

View File

@ -10,10 +10,6 @@ class HashRateShop {
return getXVal(self::getMetaList(), $id, null); return getXVal(self::getMetaList(), $id, null);
} }
public static function findHash($itemId){
return getXVal(self::getHashMetaList(), $itemId, null);
}
protected static function getMetaList() protected static function getMetaList()
{ {
if (!self::$metaList) { if (!self::$metaList) {
@ -22,18 +18,6 @@ class HashRateShop {
return self::$metaList; return self::$metaList;
} }
protected static function getHashMetaList()
{
if (!self::$hashMetaList) {
self::$hashMetaList = array();
foreach (self::getMetaList() as $meta) {
self::$hashMetaList[$meta['item_id']] = $meta;
}
}
return self::$hashMetaList;
}
protected static $metaList; protected static $metaList;
protected static $hashMetaList;
} }