1
This commit is contained in:
parent
0973bffab3
commit
302aadf31f
@ -52,22 +52,14 @@ function getRedisConfig($hash_value)
|
|||||||
return $g_conf_redis_cluster[$idx];
|
return $g_conf_redis_cluster[$idx];
|
||||||
}
|
}
|
||||||
|
|
||||||
function getSkinConfig($g_conf_skin_cluster ,$hash_value)
|
function getSkinConfig($skin_table ,$item_id)
|
||||||
{
|
{
|
||||||
if ($hash_value < 0) {
|
return array_key_exists($item_id, $skin_table) ? $skin_table[$item_id] : null;
|
||||||
die('hash_value < 0 ' . $hash_value);
|
|
||||||
}
|
|
||||||
$idx = $hash_value % count($g_conf_skin_cluster);
|
|
||||||
return $g_conf_skin_cluster[$idx];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function getEquipConfig($g_conf_equip_cluster ,$hash_value)
|
function getEquipConfig($equip_table, $item_id)
|
||||||
{
|
{
|
||||||
if ($hash_value < 0) {
|
return array_key_exists($item_id, $equip_table) ? $equip_table[$item_id] : null;
|
||||||
die('hash_value < 0 ' . $hash_value);
|
|
||||||
}
|
|
||||||
$idx = $hash_value % count($g_conf_equip_cluster);
|
|
||||||
return $g_conf_equip_cluster[$idx];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
checkMysqlConfig();
|
checkMysqlConfig();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user