This commit is contained in:
sk 2024-08-16 10:23:20 +08:00
parent 70e09ba502
commit 07c189d652
4 changed files with 773 additions and 439 deletions

File diff suppressed because it is too large Load Diff

View File

@ -204,7 +204,6 @@ enum PlayerPacketID {
PACKET_SCBillList = 2813; //
PACKET_CSSavePlayerInfo = 2814; //
PACKET_SCSavePlayerInfo = 2815; //
PACKET_CS_PhoneLotteryInfo = 2816;//
PACKET_SC_PhoneLotteryInfo = 2817;//
PACKET_CS_PhoneLottery = 2818;//
@ -232,6 +231,7 @@ enum PlayerPacketID {
PACKET_CSUpdateAttribute = 2840;//
PACKET_SCUpdateAttribute = 2841;//
PACKET_SCGuideConfig = 2842;//
PACKET_SCDataConfig = 2843;//
}
//
@ -1346,4 +1346,25 @@ message SCUpdateAttribute{
message SCGuideConfig{
int32 On = 2; // 1 2
int32 Skip = 3; // 1 2
}
message Config{
// Tp
// 1: On开关 Value地址
// 2: ...
// ...
int32 Tp = 1;
bool On = 2;
string Value = 3;
int64 Num = 4;
repeated string Values = 5;
repeated int64 Nums = 6;
repeated bool Ons = 7;
map<int64,int64> Map = 8;
map<string,string> MapStr = 9;
}
//PACKET_SCDataConfig
message SCDataConfig{
repeated Config Cfg = 1;
}

View File

@ -8209,6 +8209,70 @@ func (x *MatchAudience) GetTs() int64 {
return 0
}
// etcd /game/spirit
type SpiritConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Platform string `protobuf:"bytes,1,opt,name=Platform,proto3" json:"Platform,omitempty"` // 平台
On int32 `protobuf:"varint,2,opt,name=On,proto3" json:"On,omitempty"` // 精灵开关 1开启 2关闭
Url string `protobuf:"bytes,3,opt,name=Url,proto3" json:"Url,omitempty"`
}
func (x *SpiritConfig) Reset() {
*x = SpiritConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_common_proto_msgTypes[87]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SpiritConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SpiritConfig) ProtoMessage() {}
func (x *SpiritConfig) ProtoReflect() protoreflect.Message {
mi := &file_common_proto_msgTypes[87]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SpiritConfig.ProtoReflect.Descriptor instead.
func (*SpiritConfig) Descriptor() ([]byte, []int) {
return file_common_proto_rawDescGZIP(), []int{87}
}
func (x *SpiritConfig) GetPlatform() string {
if x != nil {
return x.Platform
}
return ""
}
func (x *SpiritConfig) GetOn() int32 {
if x != nil {
return x.On
}
return 0
}
func (x *SpiritConfig) GetUrl() string {
if x != nil {
return x.Url
}
return ""
}
var File_common_proto protoreflect.FileDescriptor
var file_common_proto_rawDesc = []byte{
@ -9500,10 +9564,15 @@ var file_common_proto_rawDesc = []byte{
0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x12, 0x0a, 0x04, 0x53, 0x6e, 0x49, 0x64,
0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x53, 0x6e, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02,
0x54, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x54, 0x73, 0x42, 0x26, 0x5a, 0x24,
0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x2e, 0x67, 0x61, 0x6d, 0x65, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
0x67, 0x61, 0x6d, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x77, 0x65,
0x62, 0x61, 0x70, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x54, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x54, 0x73, 0x22, 0x4c, 0x0a, 0x0c,
0x53, 0x70, 0x69, 0x72, 0x69, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1a, 0x0a, 0x08,
0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x4f, 0x6e, 0x18, 0x02,
0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x4f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x55, 0x72, 0x6c, 0x18,
0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x55, 0x72, 0x6c, 0x42, 0x26, 0x5a, 0x24, 0x6d, 0x6f,
0x6e, 0x67, 0x6f, 0x2e, 0x67, 0x61, 0x6d, 0x65, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x61,
0x6d, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x77, 0x65, 0x62, 0x61,
0x70, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
@ -9518,7 +9587,7 @@ func file_common_proto_rawDescGZIP() []byte {
return file_common_proto_rawDescData
}
var file_common_proto_msgTypes = make([]protoimpl.MessageInfo, 97)
var file_common_proto_msgTypes = make([]protoimpl.MessageInfo, 98)
var file_common_proto_goTypes = []interface{}{
(*MysqlDbSetting)(nil), // 0: webapi.MysqlDbSetting
(*MongoDbSetting)(nil), // 1: webapi.MongoDbSetting
@ -9607,32 +9676,33 @@ var file_common_proto_goTypes = []interface{}{
(*AnnouncerLogInfo)(nil), // 84: webapi.AnnouncerLogInfo
(*GuideConfig)(nil), // 85: webapi.GuideConfig
(*MatchAudience)(nil), // 86: webapi.MatchAudience
nil, // 87: webapi.Platform.BindTelRewardEntry
nil, // 88: webapi.PlayerData.RankScoreEntry
nil, // 89: webapi.ItemShop.AwardEntry
nil, // 90: webapi.VIPcfg.AwardEntry
nil, // 91: webapi.VIPcfg.Privilege1Entry
nil, // 92: webapi.VIPcfg.Privilege7Entry
nil, // 93: webapi.VIPcfg.Privilege9Entry
nil, // 94: webapi.ActInviteConfig.PayScoreEntry
nil, // 95: webapi.SkinLevel.UpItemEntry
nil, // 96: webapi.SkinItem.UnlockParamEntry
(*server.DB_GameFree)(nil), // 97: server.DB_GameFree
(*server.DB_GameItem)(nil), // 98: server.DB_GameItem
(*SpiritConfig)(nil), // 87: webapi.SpiritConfig
nil, // 88: webapi.Platform.BindTelRewardEntry
nil, // 89: webapi.PlayerData.RankScoreEntry
nil, // 90: webapi.ItemShop.AwardEntry
nil, // 91: webapi.VIPcfg.AwardEntry
nil, // 92: webapi.VIPcfg.Privilege1Entry
nil, // 93: webapi.VIPcfg.Privilege7Entry
nil, // 94: webapi.VIPcfg.Privilege9Entry
nil, // 95: webapi.ActInviteConfig.PayScoreEntry
nil, // 96: webapi.SkinLevel.UpItemEntry
nil, // 97: webapi.SkinItem.UnlockParamEntry
(*server.DB_GameFree)(nil), // 98: server.DB_GameFree
(*server.DB_GameItem)(nil), // 99: server.DB_GameItem
}
var file_common_proto_depIdxs = []int32{
2, // 0: webapi.Platform.Leaderboard:type_name -> webapi.RankSwitch
3, // 1: webapi.Platform.ClubConfig:type_name -> webapi.ClubConfig
4, // 2: webapi.Platform.ThirdGameMerchant:type_name -> webapi.ThirdGame
87, // 3: webapi.Platform.BindTelReward:type_name -> webapi.Platform.BindTelRewardEntry
88, // 3: webapi.Platform.BindTelReward:type_name -> webapi.Platform.BindTelRewardEntry
6, // 4: webapi.GameConfigGlobal.GameStatus:type_name -> webapi.GameStatus
97, // 5: webapi.GameFree.DbGameFree:type_name -> server.DB_GameFree
98, // 5: webapi.GameFree.DbGameFree:type_name -> server.DB_GameFree
8, // 6: webapi.PlatformGameConfig.DbGameFrees:type_name -> webapi.GameFree
0, // 7: webapi.PlatformDbConfig.Mysql:type_name -> webapi.MysqlDbSetting
1, // 8: webapi.PlatformDbConfig.MongoDb:type_name -> webapi.MongoDbSetting
1, // 9: webapi.PlatformDbConfig.MongoDbLog:type_name -> webapi.MongoDbSetting
97, // 10: webapi.GameConfigGroup.DbGameFree:type_name -> server.DB_GameFree
88, // 11: webapi.PlayerData.RankScore:type_name -> webapi.PlayerData.RankScoreEntry
98, // 10: webapi.GameConfigGroup.DbGameFree:type_name -> server.DB_GameFree
89, // 11: webapi.PlayerData.RankScore:type_name -> webapi.PlayerData.RankScoreEntry
32, // 12: webapi.PlayerData.Items:type_name -> webapi.ItemInfo
14, // 13: webapi.PlayerData.RoleUnlockList:type_name -> webapi.ModInfo
14, // 14: webapi.PlayerData.PetUnlockList:type_name -> webapi.ModInfo
@ -9645,7 +9715,7 @@ var file_common_proto_depIdxs = []int32{
32, // 21: webapi.ExchangeShop.Items:type_name -> webapi.ItemInfo
25, // 22: webapi.ExchangeShopList.List:type_name -> webapi.ExchangeShop
29, // 23: webapi.ExchangeShopList.Weight:type_name -> webapi.ShopWeight
89, // 24: webapi.ItemShop.Award:type_name -> webapi.ItemShop.AwardEntry
90, // 24: webapi.ItemShop.Award:type_name -> webapi.ItemShop.AwardEntry
30, // 25: webapi.ItemShopList.List:type_name -> webapi.ItemShop
32, // 26: webapi.MatchInfoAward.ItemId:type_name -> webapi.ItemInfo
33, // 27: webapi.GameMatchDate.Award:type_name -> webapi.MatchInfoAward
@ -9666,14 +9736,14 @@ var file_common_proto_depIdxs = []int32{
38, // 42: webapi.WelfareSpree.Item:type_name -> webapi.WelfareDate
48, // 43: webapi.WelfareFirstPayDataList.List:type_name -> webapi.WelfareSpree
48, // 44: webapi.WelfareContinuousPayDataList.List:type_name -> webapi.WelfareSpree
90, // 45: webapi.VIPcfg.Award:type_name -> webapi.VIPcfg.AwardEntry
91, // 46: webapi.VIPcfg.Privilege1:type_name -> webapi.VIPcfg.Privilege1Entry
92, // 47: webapi.VIPcfg.Privilege7:type_name -> webapi.VIPcfg.Privilege7Entry
93, // 48: webapi.VIPcfg.Privilege9:type_name -> webapi.VIPcfg.Privilege9Entry
91, // 45: webapi.VIPcfg.Award:type_name -> webapi.VIPcfg.AwardEntry
92, // 46: webapi.VIPcfg.Privilege1:type_name -> webapi.VIPcfg.Privilege1Entry
93, // 47: webapi.VIPcfg.Privilege7:type_name -> webapi.VIPcfg.Privilege7Entry
94, // 48: webapi.VIPcfg.Privilege9:type_name -> webapi.VIPcfg.Privilege9Entry
51, // 49: webapi.VIPcfgDataList.List:type_name -> webapi.VIPcfg
38, // 50: webapi.ChessRankConfig.Item:type_name -> webapi.WelfareDate
55, // 51: webapi.ChessRankcfgData.Datas:type_name -> webapi.ChessRankConfig
94, // 52: webapi.ActInviteConfig.PayScore:type_name -> webapi.ActInviteConfig.PayScoreEntry
95, // 52: webapi.ActInviteConfig.PayScore:type_name -> webapi.ActInviteConfig.PayScoreEntry
62, // 53: webapi.ActInviteConfig.Awards1:type_name -> webapi.RankAward
62, // 54: webapi.ActInviteConfig.Awards2:type_name -> webapi.RankAward
62, // 55: webapi.ActInviteConfig.Awards3:type_name -> webapi.RankAward
@ -9690,12 +9760,12 @@ var file_common_proto_depIdxs = []int32{
69, // 66: webapi.DiamondLotteryData.Info:type_name -> webapi.DiamondLotteryInfo
70, // 67: webapi.DiamondLotteryData.Players:type_name -> webapi.DiamondLotteryPlayers
72, // 68: webapi.DiamondLotteryConfig.LotteryData:type_name -> webapi.DiamondLotteryData
98, // 69: webapi.ItemConfig.Items:type_name -> server.DB_GameItem
99, // 69: webapi.ItemConfig.Items:type_name -> server.DB_GameItem
32, // 70: webapi.RankAwardInfo.Item:type_name -> webapi.ItemInfo
75, // 71: webapi.RankTypeInfo.Award:type_name -> webapi.RankAwardInfo
76, // 72: webapi.RankTypeConfig.Info:type_name -> webapi.RankTypeInfo
95, // 73: webapi.SkinLevel.UpItem:type_name -> webapi.SkinLevel.UpItemEntry
96, // 74: webapi.SkinItem.UnlockParam:type_name -> webapi.SkinItem.UnlockParamEntry
96, // 73: webapi.SkinLevel.UpItem:type_name -> webapi.SkinLevel.UpItemEntry
97, // 74: webapi.SkinItem.UnlockParam:type_name -> webapi.SkinItem.UnlockParamEntry
78, // 75: webapi.SkinItem.Levels:type_name -> webapi.SkinLevel
79, // 76: webapi.SkinConfig.Items:type_name -> webapi.SkinItem
82, // 77: webapi.AwardLogConfig.AwardLog:type_name -> webapi.AwardLogData
@ -10758,6 +10828,18 @@ func file_common_proto_init() {
return nil
}
}
file_common_proto_msgTypes[87].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SpiritConfig); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
@ -10765,7 +10847,7 @@ func file_common_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_common_proto_rawDesc,
NumEnums: 0,
NumMessages: 97,
NumMessages: 98,
NumExtensions: 0,
NumServices: 0,
},

View File

@ -897,4 +897,11 @@ message MatchAudience {
string Platform = 1; //
int32 SnId = 2; // ID
int64 Ts = 3; //
}
// etcd /game/spirit
message SpiritConfig {
string Platform = 1; //
int32 On = 2; // 1 2
string Url = 3;
}