1
This commit is contained in:
parent
812ff5af90
commit
0973bffab3
@ -63,6 +63,26 @@ CREATE TABLE `skin` (
|
|||||||
KEY `accountid` (`accountid`)
|
KEY `accountid` (`accountid`)
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
||||||
|
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `equip`
|
||||||
|
--
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `equip`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!40101 SET character_set_client = utf8 */;
|
||||||
|
CREATE TABLE `equip` (
|
||||||
|
`idx` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增id',
|
||||||
|
`accountid` varchar(60) DEFAULT '' COMMENT '账号id',
|
||||||
|
`equip_id` int(11) NOT NULL COMMENT '装备id',
|
||||||
|
`equip_level` int(11) NOT NULL COMMENT '装备等级',
|
||||||
|
`equip_experience_level` int(11) NOT NULL COMMENT '装备体验等级',
|
||||||
|
`active_time` varchar(50) NOT NULL DEFAULT '有效时间',
|
||||||
|
PRIMARY KEY (`idx`),
|
||||||
|
KEY `accountid` (`accountid`)
|
||||||
|
) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
||||||
|
|
||||||
|
|
||||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
/*!40101 SET character_set_client = utf8 */;
|
/*!40101 SET character_set_client = utf8 */;
|
||||||
|
|
||||||
|
@ -61,5 +61,14 @@ function getSkinConfig($g_conf_skin_cluster ,$hash_value)
|
|||||||
return $g_conf_skin_cluster[$idx];
|
return $g_conf_skin_cluster[$idx];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getEquipConfig($g_conf_equip_cluster ,$hash_value)
|
||||||
|
{
|
||||||
|
if ($hash_value < 0) {
|
||||||
|
die('hash_value < 0 ' . $hash_value);
|
||||||
|
}
|
||||||
|
$idx = $hash_value % count($g_conf_equip_cluster);
|
||||||
|
return $g_conf_equip_cluster[$idx];
|
||||||
|
}
|
||||||
|
|
||||||
checkMysqlConfig();
|
checkMysqlConfig();
|
||||||
checkRedisConfig();
|
checkRedisConfig();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user