From 09ed66db11398889f9022975041e6eeb290430f2 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 15 Apr 2024 13:45:35 +0800 Subject: [PATCH] 1 --- database/frienddb.sql | 20 ++++++++++++++++++++ server/imserver/proto/cs_proto.proto | 1 + 2 files changed, 21 insertions(+) diff --git a/database/frienddb.sql b/database/frienddb.sql index c243839c..920014e2 100644 --- a/database/frienddb.sql +++ b/database/frienddb.sql @@ -202,6 +202,26 @@ CREATE TABLE `t_guild_log` ( /*!40101 SET character_set_client = @saved_cs_client */; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; +-- +-- Table structure for table `t_recent_battle` +-- + +DROP TABLE IF EXISTS `t_recent_battle`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `t_recent_battle` ( + `idx` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '自增id', + `account_id1` varchar(60) CHARACTER SET utf8 NOT NULL COMMENT '账号1', + `account_id2` varchar(60) CHARACTER SET utf8 NOT NULL COMMENT '账号2', + `last_battle_time` 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`), + KEY `account_id1_account_id2` (`account_id1`, `account_id2`) +) ENGINE=InnoDB AUTO_INCREMENT=10000 DEFAULT CHARSET=utf8 COLLATE=utf8_bin; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; + -- -- Table structure for table `t_log` -- diff --git a/server/imserver/proto/cs_proto.proto b/server/imserver/proto/cs_proto.proto index e0605142..a1cbe57b 100644 --- a/server/imserver/proto/cs_proto.proto +++ b/server/imserver/proto/cs_proto.proto @@ -370,6 +370,7 @@ message SMRecommendList optional int32 errcode = 1; optional string errmsg = 2; repeated MFUser users = 3; + optional int32 type = 4; } // --- 聊天 ---