This commit is contained in:
hujiabin 2022-10-27 20:31:45 +08:00
parent f551f6db00
commit b5e7ccd0be
2 changed files with 50 additions and 7 deletions

View File

@ -88,7 +88,7 @@ CREATE TABLE `t_bigdata` (
PRIMARY KEY (`idx`), PRIMARY KEY (`idx`),
UNIQUE KEY `account_id_type` (`account_id`, `type`) UNIQUE KEY `account_id_type` (`account_id`, `type`)
) ENGINE=InnoDB AUTO_INCREMENT=10000 DEFAULT CHARSET=utf8 COLLATE=utf8_bin; ) ENGINE=InnoDB AUTO_INCREMENT=10000 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
-- Table structure for table `t_user_wallet_offline` /*!40101 SET character_set_client = @saved_cs_client */;
-- --
DROP TABLE IF EXISTS `t_user_wallet_offline`; DROP TABLE IF EXISTS `t_user_wallet_offline`;
@ -709,3 +709,46 @@ CREATE TABLE `t_guide_data` (
/*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET character_set_client = @saved_cs_client */;
-- Dump completed on 2015-08-19 18:51:22 -- Dump completed on 2015-08-19 18:51:22
--
-- Table structure for table `t_user_season_ring`
--
DROP TABLE IF EXISTS `t_user_season_ring`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t_user_season_ring` (
`idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id',
`account_id` varchar(60) NOT NULL DEFAULT '' COMMENT '账号id(channel + "_" + gameid + "_" + openid)',
`token_id` varchar(60) COMMENT 'token_id',
`season` int(11) NOT NULL DEFAULT '0' COMMENT '赛季',
`item_id` int(11) NOT NULL DEFAULT '0' COMMENT '道具id',
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
PRIMARY KEY (`idx`),
UNIQUE KEY `account_id_season` (`account_id`, `season`),
UNIQUE KEY `token_id` (`token_id`)
) ENGINE=InnoDB AUTO_INCREMENT=10000 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `t_season_history`
--
DROP TABLE IF EXISTS `t_season_history`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t_season_history` (
`idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id',
`account_id` varchar(60) NOT NULL DEFAULT '' COMMENT '账号id(channel + "_" + gameid + "_" + openid)',
`channel` int(11) NOT NULL DEFAULT '0' COMMENT 'channel',
`rank` int(11) NOT NULL DEFAULT '0' COMMENT '段位',
`score` int(11) NOT NULL DEFAULT '0' COMMENT '积分',
`ranking` int(11) NOT NULL DEFAULT '0' COMMENT '排名',
`season` int(11) NOT NULL DEFAULT '0' COMMENT '赛季',
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
PRIMARY KEY (`idx`),
UNIQUE KEY `account_id_season` (`account_id`, `season`)
) ENGINE=InnoDB AUTO_INCREMENT=10000 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40101 SET character_set_client = @saved_cs_client */;

View File

@ -148,12 +148,12 @@ class MissionController extends BaseAuthedController {
$this->_rspErr(3, 'Unknown mission status'); $this->_rspErr(3, 'Unknown mission status');
return; return;
} }
// $dropMeta = mt\Drop::get($missionMeta['reward']); $dropMeta = mt\Drop::get($missionMeta['reward']);
// if (!$dropMeta) { if (!$dropMeta) {
// $this->_rspErr(10, 'server internal error:' . $missionMeta['reward']); $this->_rspErr(10, 'server internal error:' . $missionMeta['reward']);
// return; return;
// } }
// $this->_scatterDrop('mission:' . $missionId, $dropMeta, $this->awardService, $this->propertyChgService); $this->_scatterDrop('mission:' . $missionId, $dropMeta, $this->awardService, $this->propertyChgService);
$this->procSpecMissionCommit($missionDto, $missionMeta); $this->procSpecMissionCommit($missionDto, $missionMeta);
Mission::add($missionId); Mission::add($missionId);
$missionDb = Mission::find($missionId); $missionDb = Mission::find($missionId);