This commit is contained in:
wangwei01 2019-04-09 15:56:48 +08:00
parent aef6bf5da4
commit 9aafd295a1
2 changed files with 25 additions and 0 deletions

View File

@ -83,6 +83,22 @@ CREATE TABLE `equip` (
) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
--
-- Table structure for table `supplybox`
--
DROP TABLE IF EXISTS `supplybox`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `supplybox` (
`idx` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增id',
`accountid` varchar(60) DEFAULT '' COMMENT '账号id',
`box_id` int(11) NOT NULL COMMENT '补给箱id',
`box_num` int(11) NOT NULL COMMENT '补给箱数量',
`buy_times` int(11) NOT NULL COMMENT '购买次数',
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 = utf8 */;

View File

@ -62,5 +62,14 @@ function getEquipConfig($equip_table, $item_id)
return array_key_exists($item_id, $equip_table) ? $equip_table[$item_id] : null;
}
function getSupplyConfig($supply_table, $box_id)
{
return array_key_exists($box_id, $supply_table) ? $supply_table[$box_id] : null;
}
function getDropConfig($drop_table, $drop_id)
{
return array_key_exists($drop_id, $drop_table) ? $drop_table[$drop_id] : null;
}
checkMysqlConfig();
checkRedisConfig();