Compare commits

...

6 Commits

Author SHA1 Message Date
sk 6390826abf update 2024-04-16 17:45:24 +08:00
sk bf19adf1d5 update 2024-04-16 14:06:52 +08:00
sk fbed65b532 update 2024-04-16 13:34:01 +08:00
sk 64381303e0 update 2024-04-16 10:19:50 +08:00
sk 4c460647fb update 2024-04-16 09:47:30 +08:00
sk d7b4e7a69f update 2024-04-15 16:49:43 +08:00
21 changed files with 892 additions and 311 deletions

Binary file not shown.

View File

@ -393,7 +393,7 @@
1,
0
],
"Type": 4,
"Type": 13,
"Effect0": [
1,
0,

View File

@ -1,5 +1,5 @@
6с├т├у├ж├в├"║█ю└=
.ь├ы├з├ш"║█ю└=
Wс├т├ж├з├ш├у├в├ь├ы" ║█─╜Б
]ж├ь├з├э├с├т├ы├ш├у├в"╒█Т
6т├у├ж├вс"║█ю└=
.з├ш├ь├ы"║█ю└=
Wс├в├ь├ы├ш├т├у├ж├з" ║█─╜Б
]т├у├ж├ы├з├э├с├в├ь├ш"╒█Т

Binary file not shown.

View File

@ -20,7 +20,7 @@
"MatchSeasonRankMaxNum":50,
"RobotInviteInitInterval": 1,
"RobotInviteIntervalMax": 1,
"ClosePreCreateRoom": false,
"ClosePreCreateRoom": true,
"AgoraAddress": "http://47.105.78.29:8081",
"InviteUrl": "http://47.105.78.29:8000/"
}

View File

@ -91,6 +91,9 @@ const (
SPacketID_PACKET_ALL_BAG_USE SPacketID = 2531 //使用背包道具
SPacketID_PACKET_SC_SYNCBAGDATA SPacketID = 2532 //背包数据更新
SPacketID_PACKET_ALL_BAG_END SPacketID = 2549 //最大消息号
//3000~3099
SPacketID_PACKET_PropExchange SPacketID = 3000 // 道具兑换
SPacketID_PACKET_ExchangeList SPacketID = 3001 // 兑换列表
)
// Enum value maps for SPacketID.
@ -101,6 +104,8 @@ var (
2531: "PACKET_ALL_BAG_USE",
2532: "PACKET_SC_SYNCBAGDATA",
2549: "PACKET_ALL_BAG_END",
3000: "PACKET_PropExchange",
3001: "PACKET_ExchangeList",
}
SPacketID_value = map[string]int32{
"PACKET_BAG_ZERO": 0,
@ -108,6 +113,8 @@ var (
"PACKET_ALL_BAG_USE": 2531,
"PACKET_SC_SYNCBAGDATA": 2532,
"PACKET_ALL_BAG_END": 2549,
"PACKET_PropExchange": 3000,
"PACKET_ExchangeList": 3001,
}
)
@ -223,6 +230,7 @@ type CSBagInfo struct {
unknownFields protoimpl.UnknownFields
NowLocation int32 `protobuf:"varint,1,opt,name=NowLocation,proto3" json:"NowLocation,omitempty"` //0.通用 1.大厅 2.Tienlen 3.捕鱼
Tp int32 `protobuf:"varint,2,opt,name=Tp,proto3" json:"Tp,omitempty"` // 道具类型,道具表中的道具类型
}
func (x *CSBagInfo) Reset() {
@ -264,6 +272,13 @@ func (x *CSBagInfo) GetNowLocation() int32 {
return 0
}
func (x *CSBagInfo) GetTp() int32 {
if x != nil {
return x.Tp
}
return 0
}
// PACKET_ALL_BAG_INFO
type SCBagInfo struct {
state protoimpl.MessageState
@ -554,6 +569,338 @@ func (x *SCSyncBagData) GetInfos() []*ItemInfo {
return nil
}
type PropInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ItemId int32 `protobuf:"varint,1,opt,name=ItemId,proto3" json:"ItemId,omitempty"` //物品ID
ItemNum int64 `protobuf:"varint,2,opt,name=ItemNum,proto3" json:"ItemNum,omitempty"` //物品数量
}
func (x *PropInfo) Reset() {
*x = PropInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_bag_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PropInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PropInfo) ProtoMessage() {}
func (x *PropInfo) ProtoReflect() protoreflect.Message {
mi := &file_bag_proto_msgTypes[6]
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 PropInfo.ProtoReflect.Descriptor instead.
func (*PropInfo) Descriptor() ([]byte, []int) {
return file_bag_proto_rawDescGZIP(), []int{6}
}
func (x *PropInfo) GetItemId() int32 {
if x != nil {
return x.ItemId
}
return 0
}
func (x *PropInfo) GetItemNum() int64 {
if x != nil {
return x.ItemNum
}
return 0
}
// PACKET_PropExchange
type CSPropExchange struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id int32 `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"` // 兑换ID
}
func (x *CSPropExchange) Reset() {
*x = CSPropExchange{}
if protoimpl.UnsafeEnabled {
mi := &file_bag_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CSPropExchange) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CSPropExchange) ProtoMessage() {}
func (x *CSPropExchange) ProtoReflect() protoreflect.Message {
mi := &file_bag_proto_msgTypes[7]
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 CSPropExchange.ProtoReflect.Descriptor instead.
func (*CSPropExchange) Descriptor() ([]byte, []int) {
return file_bag_proto_rawDescGZIP(), []int{7}
}
func (x *CSPropExchange) GetId() int32 {
if x != nil {
return x.Id
}
return 0
}
type SCPropExchange struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
RetCode OpResultCode `protobuf:"varint,1,opt,name=RetCode,proto3,enum=bag.OpResultCode" json:"RetCode,omitempty"` // 错误码
Items []*PropInfo `protobuf:"bytes,2,rep,name=Items,proto3" json:"Items,omitempty"` // 获得道具
RemainItems []*PropInfo `protobuf:"bytes,3,rep,name=RemainItems,proto3" json:"RemainItems,omitempty"` // 被消耗的道具剩余数量
}
func (x *SCPropExchange) Reset() {
*x = SCPropExchange{}
if protoimpl.UnsafeEnabled {
mi := &file_bag_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SCPropExchange) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SCPropExchange) ProtoMessage() {}
func (x *SCPropExchange) ProtoReflect() protoreflect.Message {
mi := &file_bag_proto_msgTypes[8]
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 SCPropExchange.ProtoReflect.Descriptor instead.
func (*SCPropExchange) Descriptor() ([]byte, []int) {
return file_bag_proto_rawDescGZIP(), []int{8}
}
func (x *SCPropExchange) GetRetCode() OpResultCode {
if x != nil {
return x.RetCode
}
return OpResultCode_OPRC_Sucess
}
func (x *SCPropExchange) GetItems() []*PropInfo {
if x != nil {
return x.Items
}
return nil
}
func (x *SCPropExchange) GetRemainItems() []*PropInfo {
if x != nil {
return x.RemainItems
}
return nil
}
type ExchangeInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id int32 `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"` // 兑换ID
CostItems []*PropInfo `protobuf:"bytes,2,rep,name=CostItems,proto3" json:"CostItems,omitempty"` // 消耗道具
GainItems []*PropInfo `protobuf:"bytes,3,rep,name=GainItems,proto3" json:"GainItems,omitempty"` // 获得道具
}
func (x *ExchangeInfo) Reset() {
*x = ExchangeInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_bag_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ExchangeInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ExchangeInfo) ProtoMessage() {}
func (x *ExchangeInfo) ProtoReflect() protoreflect.Message {
mi := &file_bag_proto_msgTypes[9]
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 ExchangeInfo.ProtoReflect.Descriptor instead.
func (*ExchangeInfo) Descriptor() ([]byte, []int) {
return file_bag_proto_rawDescGZIP(), []int{9}
}
func (x *ExchangeInfo) GetId() int32 {
if x != nil {
return x.Id
}
return 0
}
func (x *ExchangeInfo) GetCostItems() []*PropInfo {
if x != nil {
return x.CostItems
}
return nil
}
func (x *ExchangeInfo) GetGainItems() []*PropInfo {
if x != nil {
return x.GainItems
}
return nil
}
// PACKET_ExchangeList
type CSExchangeList struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Tp int32 `protobuf:"varint,1,opt,name=Tp,proto3" json:"Tp,omitempty"` // 兑换类型 1集卡活动
}
func (x *CSExchangeList) Reset() {
*x = CSExchangeList{}
if protoimpl.UnsafeEnabled {
mi := &file_bag_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CSExchangeList) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CSExchangeList) ProtoMessage() {}
func (x *CSExchangeList) ProtoReflect() protoreflect.Message {
mi := &file_bag_proto_msgTypes[10]
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 CSExchangeList.ProtoReflect.Descriptor instead.
func (*CSExchangeList) Descriptor() ([]byte, []int) {
return file_bag_proto_rawDescGZIP(), []int{10}
}
func (x *CSExchangeList) GetTp() int32 {
if x != nil {
return x.Tp
}
return 0
}
type SCExchangeList struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Infos []*ExchangeInfo `protobuf:"bytes,1,rep,name=Infos,proto3" json:"Infos,omitempty"` // 兑换列表
Tp int32 `protobuf:"varint,2,opt,name=Tp,proto3" json:"Tp,omitempty"` // 兑换类型
}
func (x *SCExchangeList) Reset() {
*x = SCExchangeList{}
if protoimpl.UnsafeEnabled {
mi := &file_bag_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SCExchangeList) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SCExchangeList) ProtoMessage() {}
func (x *SCExchangeList) ProtoReflect() protoreflect.Message {
mi := &file_bag_proto_msgTypes[11]
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 SCExchangeList.ProtoReflect.Descriptor instead.
func (*SCExchangeList) Descriptor() ([]byte, []int) {
return file_bag_proto_rawDescGZIP(), []int{11}
}
func (x *SCExchangeList) GetInfos() []*ExchangeInfo {
if x != nil {
return x.Infos
}
return nil
}
func (x *SCExchangeList) GetTp() int32 {
if x != nil {
return x.Tp
}
return 0
}
var File_bag_proto protoreflect.FileDescriptor
var file_bag_proto_rawDesc = []byte{
@ -563,10 +910,11 @@ var file_bag_proto_rawDesc = []byte{
0x65, 0x6d, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x49, 0x74, 0x65, 0x6d, 0x4e, 0x75, 0x6d, 0x18,
0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x49, 0x74, 0x65, 0x6d, 0x4e, 0x75, 0x6d, 0x12, 0x1e,
0x0a, 0x0a, 0x4f, 0x62, 0x74, 0x61, 0x69, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01,
0x28, 0x03, 0x52, 0x0a, 0x4f, 0x62, 0x74, 0x61, 0x69, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x2d,
0x28, 0x03, 0x52, 0x0a, 0x4f, 0x62, 0x74, 0x61, 0x69, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x3d,
0x0a, 0x09, 0x43, 0x53, 0x42, 0x61, 0x67, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x20, 0x0a, 0x0b, 0x4e,
0x6f, 0x77, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05,
0x52, 0x0b, 0x4e, 0x6f, 0x77, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x7b, 0x0a,
0x52, 0x0b, 0x4e, 0x6f, 0x77, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a,
0x02, 0x54, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x54, 0x70, 0x22, 0x7b, 0x0a,
0x09, 0x53, 0x43, 0x42, 0x61, 0x67, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x2b, 0x0a, 0x07, 0x52, 0x65,
0x74, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x62, 0x61,
0x67, 0x2e, 0x4f, 0x70, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x07,
@ -601,25 +949,58 @@ var file_bag_proto_rawDesc = []byte{
0x6f, 0x73, 0x22, 0x34, 0x0a, 0x0d, 0x53, 0x43, 0x53, 0x79, 0x6e, 0x63, 0x42, 0x61, 0x67, 0x44,
0x61, 0x74, 0x61, 0x12, 0x23, 0x0a, 0x05, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x18, 0x01, 0x20, 0x03,
0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x62, 0x61, 0x67, 0x2e, 0x49, 0x74, 0x65, 0x6d, 0x49, 0x6e, 0x66,
0x6f, 0x52, 0x05, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x2a, 0x85, 0x01, 0x0a, 0x0c, 0x4f, 0x70, 0x52,
0x65, 0x73, 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x4f, 0x50, 0x52,
0x43, 0x5f, 0x53, 0x75, 0x63, 0x65, 0x73, 0x73, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x4f, 0x50,
0x52, 0x43, 0x5f, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x4f, 0x50,
0x52, 0x43, 0x5f, 0x55, 0x73, 0x65, 0x55, 0x70, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x4f, 0x50,
0x52, 0x43, 0x5f, 0x49, 0x64, 0x45, 0x72, 0x72, 0x10, 0x03, 0x12, 0x0e, 0x0a, 0x0a, 0x4f, 0x50,
0x52, 0x43, 0x5f, 0x44, 0x62, 0x45, 0x72, 0x72, 0x10, 0x04, 0x12, 0x10, 0x0a, 0x0c, 0x4f, 0x50,
0x52, 0x43, 0x5f, 0x42, 0x61, 0x67, 0x46, 0x75, 0x6c, 0x6c, 0x10, 0x05, 0x12, 0x12, 0x0a, 0x0e,
0x4f, 0x50, 0x52, 0x43, 0x5f, 0x4e, 0x6f, 0x74, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x10, 0x06,
0x2a, 0x88, 0x01, 0x0a, 0x09, 0x53, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x49, 0x44, 0x12, 0x13,
0x0a, 0x0f, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x42, 0x41, 0x47, 0x5f, 0x5a, 0x45, 0x52,
0x4f, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x13, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x41, 0x4c,
0x4c, 0x5f, 0x42, 0x41, 0x47, 0x5f, 0x49, 0x4e, 0x46, 0x4f, 0x10, 0xe2, 0x13, 0x12, 0x17, 0x0a,
0x12, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x41, 0x4c, 0x4c, 0x5f, 0x42, 0x41, 0x47, 0x5f,
0x55, 0x53, 0x45, 0x10, 0xe3, 0x13, 0x12, 0x1a, 0x0a, 0x15, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54,
0x5f, 0x53, 0x43, 0x5f, 0x53, 0x59, 0x4e, 0x43, 0x42, 0x41, 0x47, 0x44, 0x41, 0x54, 0x41, 0x10,
0xe4, 0x13, 0x12, 0x17, 0x0a, 0x12, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x41, 0x4c, 0x4c,
0x5f, 0x42, 0x41, 0x47, 0x5f, 0x45, 0x4e, 0x44, 0x10, 0xf5, 0x13, 0x42, 0x07, 0x5a, 0x05, 0x2e,
0x3b, 0x62, 0x61, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x6f, 0x52, 0x05, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x22, 0x3c, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x70,
0x49, 0x6e, 0x66, 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x49, 0x74, 0x65, 0x6d, 0x49, 0x64, 0x18, 0x01,
0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x49, 0x74, 0x65, 0x6d, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07,
0x49, 0x74, 0x65, 0x6d, 0x4e, 0x75, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x49,
0x74, 0x65, 0x6d, 0x4e, 0x75, 0x6d, 0x22, 0x20, 0x0a, 0x0e, 0x43, 0x53, 0x50, 0x72, 0x6f, 0x70,
0x45, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x64, 0x18, 0x01,
0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x49, 0x64, 0x22, 0x93, 0x01, 0x0a, 0x0e, 0x53, 0x43, 0x50,
0x72, 0x6f, 0x70, 0x45, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x2b, 0x0a, 0x07, 0x52,
0x65, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x62,
0x61, 0x67, 0x2e, 0x4f, 0x70, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x52,
0x07, 0x52, 0x65, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x23, 0x0a, 0x05, 0x49, 0x74, 0x65, 0x6d,
0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x62, 0x61, 0x67, 0x2e, 0x50, 0x72,
0x6f, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x05, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x12, 0x2f, 0x0a,
0x0b, 0x52, 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x03, 0x20, 0x03,
0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x62, 0x61, 0x67, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x49, 0x6e, 0x66,
0x6f, 0x52, 0x0b, 0x52, 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x78,
0x0a, 0x0c, 0x45, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0e,
0x0a, 0x02, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x49, 0x64, 0x12, 0x2b,
0x0a, 0x09, 0x43, 0x6f, 0x73, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28,
0x0b, 0x32, 0x0d, 0x2e, 0x62, 0x61, 0x67, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x49, 0x6e, 0x66, 0x6f,
0x52, 0x09, 0x43, 0x6f, 0x73, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x12, 0x2b, 0x0a, 0x09, 0x47,
0x61, 0x69, 0x6e, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d,
0x2e, 0x62, 0x61, 0x67, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x09, 0x47,
0x61, 0x69, 0x6e, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x20, 0x0a, 0x0e, 0x43, 0x53, 0x45, 0x78,
0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x54, 0x70,
0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x54, 0x70, 0x22, 0x49, 0x0a, 0x0e, 0x53, 0x43,
0x45, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x05,
0x49, 0x6e, 0x66, 0x6f, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x62, 0x61,
0x67, 0x2e, 0x45, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x05,
0x49, 0x6e, 0x66, 0x6f, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x54, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28,
0x05, 0x52, 0x02, 0x54, 0x70, 0x2a, 0x85, 0x01, 0x0a, 0x0c, 0x4f, 0x70, 0x52, 0x65, 0x73, 0x75,
0x6c, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x4f, 0x50, 0x52, 0x43, 0x5f, 0x53,
0x75, 0x63, 0x65, 0x73, 0x73, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x4f, 0x50, 0x52, 0x43, 0x5f,
0x45, 0x72, 0x72, 0x6f, 0x72, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x4f, 0x50, 0x52, 0x43, 0x5f,
0x55, 0x73, 0x65, 0x55, 0x70, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x4f, 0x50, 0x52, 0x43, 0x5f,
0x49, 0x64, 0x45, 0x72, 0x72, 0x10, 0x03, 0x12, 0x0e, 0x0a, 0x0a, 0x4f, 0x50, 0x52, 0x43, 0x5f,
0x44, 0x62, 0x45, 0x72, 0x72, 0x10, 0x04, 0x12, 0x10, 0x0a, 0x0c, 0x4f, 0x50, 0x52, 0x43, 0x5f,
0x42, 0x61, 0x67, 0x46, 0x75, 0x6c, 0x6c, 0x10, 0x05, 0x12, 0x12, 0x0a, 0x0e, 0x4f, 0x50, 0x52,
0x43, 0x5f, 0x4e, 0x6f, 0x74, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x10, 0x06, 0x2a, 0xbc, 0x01,
0x0a, 0x09, 0x53, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x49, 0x44, 0x12, 0x13, 0x0a, 0x0f, 0x50,
0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x42, 0x41, 0x47, 0x5f, 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x00,
0x12, 0x18, 0x0a, 0x13, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x41, 0x4c, 0x4c, 0x5f, 0x42,
0x41, 0x47, 0x5f, 0x49, 0x4e, 0x46, 0x4f, 0x10, 0xe2, 0x13, 0x12, 0x17, 0x0a, 0x12, 0x50, 0x41,
0x43, 0x4b, 0x45, 0x54, 0x5f, 0x41, 0x4c, 0x4c, 0x5f, 0x42, 0x41, 0x47, 0x5f, 0x55, 0x53, 0x45,
0x10, 0xe3, 0x13, 0x12, 0x1a, 0x0a, 0x15, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x53, 0x43,
0x5f, 0x53, 0x59, 0x4e, 0x43, 0x42, 0x41, 0x47, 0x44, 0x41, 0x54, 0x41, 0x10, 0xe4, 0x13, 0x12,
0x17, 0x0a, 0x12, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x41, 0x4c, 0x4c, 0x5f, 0x42, 0x41,
0x47, 0x5f, 0x45, 0x4e, 0x44, 0x10, 0xf5, 0x13, 0x12, 0x18, 0x0a, 0x13, 0x50, 0x41, 0x43, 0x4b,
0x45, 0x54, 0x5f, 0x50, 0x72, 0x6f, 0x70, 0x45, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x10,
0xb8, 0x17, 0x12, 0x18, 0x0a, 0x13, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x45, 0x78, 0x63,
0x68, 0x61, 0x6e, 0x67, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x10, 0xb9, 0x17, 0x42, 0x07, 0x5a, 0x05,
0x2e, 0x3b, 0x62, 0x61, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
@ -635,7 +1016,7 @@ func file_bag_proto_rawDescGZIP() []byte {
}
var file_bag_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_bag_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_bag_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
var file_bag_proto_goTypes = []interface{}{
(OpResultCode)(0), // 0: bag.OpResultCode
(SPacketID)(0), // 1: bag.SPacketID
@ -645,6 +1026,12 @@ var file_bag_proto_goTypes = []interface{}{
(*CSUpBagInfo)(nil), // 5: bag.CSUpBagInfo
(*SCUpBagInfo)(nil), // 6: bag.SCUpBagInfo
(*SCSyncBagData)(nil), // 7: bag.SCSyncBagData
(*PropInfo)(nil), // 8: bag.PropInfo
(*CSPropExchange)(nil), // 9: bag.CSPropExchange
(*SCPropExchange)(nil), // 10: bag.SCPropExchange
(*ExchangeInfo)(nil), // 11: bag.ExchangeInfo
(*CSExchangeList)(nil), // 12: bag.CSExchangeList
(*SCExchangeList)(nil), // 13: bag.SCExchangeList
}
var file_bag_proto_depIdxs = []int32{
0, // 0: bag.SCBagInfo.RetCode:type_name -> bag.OpResultCode
@ -652,11 +1039,17 @@ var file_bag_proto_depIdxs = []int32{
0, // 2: bag.SCUpBagInfo.RetCode:type_name -> bag.OpResultCode
2, // 3: bag.SCUpBagInfo.Infos:type_name -> bag.ItemInfo
2, // 4: bag.SCSyncBagData.Infos:type_name -> bag.ItemInfo
5, // [5:5] is the sub-list for method output_type
5, // [5:5] is the sub-list for method input_type
5, // [5:5] is the sub-list for extension type_name
5, // [5:5] is the sub-list for extension extendee
0, // [0:5] is the sub-list for field type_name
0, // 5: bag.SCPropExchange.RetCode:type_name -> bag.OpResultCode
8, // 6: bag.SCPropExchange.Items:type_name -> bag.PropInfo
8, // 7: bag.SCPropExchange.RemainItems:type_name -> bag.PropInfo
8, // 8: bag.ExchangeInfo.CostItems:type_name -> bag.PropInfo
8, // 9: bag.ExchangeInfo.GainItems:type_name -> bag.PropInfo
11, // 10: bag.SCExchangeList.Infos:type_name -> bag.ExchangeInfo
11, // [11:11] is the sub-list for method output_type
11, // [11:11] is the sub-list for method input_type
11, // [11:11] is the sub-list for extension type_name
11, // [11:11] is the sub-list for extension extendee
0, // [0:11] is the sub-list for field type_name
}
func init() { file_bag_proto_init() }
@ -737,6 +1130,78 @@ func file_bag_proto_init() {
return nil
}
}
file_bag_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*PropInfo); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_bag_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CSPropExchange); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_bag_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SCPropExchange); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_bag_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ExchangeInfo); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_bag_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CSExchangeList); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_bag_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SCExchangeList); 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{
@ -744,7 +1209,7 @@ func file_bag_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_bag_proto_rawDesc,
NumEnums: 2,
NumMessages: 6,
NumMessages: 12,
NumExtensions: 0,
NumServices: 0,
},

View File

@ -18,6 +18,9 @@ enum SPacketID {
PACKET_ALL_BAG_USE = 2531; //使
PACKET_SC_SYNCBAGDATA = 2532;//
PACKET_ALL_BAG_END = 2549; //
//3000~3099
PACKET_PropExchange = 3000; //
PACKET_ExchangeList = 3001; //
}
//
message ItemInfo{
@ -43,6 +46,7 @@ message ItemInfo{
//PACKET_ALL_BAG_INFO
message CSBagInfo {
int32 NowLocation = 1;//0. 1. 2.Tienlen 3.
int32 Tp = 2;//
}
//PACKET_ALL_BAG_INFO
message SCBagInfo {
@ -75,3 +79,33 @@ message SCUpBagInfo {
message SCSyncBagData{
repeated ItemInfo Infos = 1;//
}
message PropInfo{
int32 ItemId = 1;//ID
int64 ItemNum = 2;//
}
// PACKET_PropExchange
message CSPropExchange{
int32 Id = 1; // ID
}
message SCPropExchange{
OpResultCode RetCode = 1; //
repeated PropInfo Items = 2; //
repeated PropInfo RemainItems = 3; //
}
message ExchangeInfo{
int32 Id = 1; // ID
repeated PropInfo CostItems = 2; //
repeated PropInfo GainItems = 3; //
}
// PACKET_ExchangeList
message CSExchangeList{
int32 Tp = 1; // 1
}
message SCExchangeList{
repeated ExchangeInfo Infos = 1; //
int32 Tp = 2; //
}

View File

@ -47,6 +47,7 @@
#### bag背包
- 2530~2549
- 3000~3099
#### Pets人物宠物
- 2550~2579

View File

@ -7683,14 +7683,13 @@ func (x *SCVIPInfo) GetMoneyRatio() int32 {
return 0
}
//
// PACKET_SC_SWELFAREINFO
type SCEasyWelfaredInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
WelfareSwitch []int32 `protobuf:"varint,1,rep,packed,name=WelfareSwitch,proto3" json:"WelfareSwitch,omitempty"` // 下标 0转盘1盲盒2首冲3连续充值4抽手机活动 1显示 2不显示
WelfareSwitch []int32 `protobuf:"varint,1,rep,packed,name=WelfareSwitch,proto3" json:"WelfareSwitch,omitempty"` // 下标 0转盘1盲盒2首冲3连续充值4抽手机活动5集卡活动 1显示 2不显示
}
func (x *SCEasyWelfaredInfo) Reset() {

View File

@ -996,7 +996,7 @@ message SCVIPInfo {
//
//PACKET_SC_SWELFAREINFO
message SCEasyWelfaredInfo{
repeated int32 WelfareSwitch = 1; // 01234 1 2
repeated int32 WelfareSwitch = 1; // 012345 1 2
}
message CSVIPPrivilegeInfo {

View File

@ -226,7 +226,7 @@ func (x *SALogin) GetSnid() int32 {
}
// 加币
// [action] /api/mongo.games.com/game/QPAPIAddSubCoinById
// [action] /api/game/QPAPIAddSubCoinById
type ASAddCoinById struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache

View File

@ -28,7 +28,7 @@ message SALogin{
}
//
// [action] /api/mongo.games.com/game/QPAPIAddSubCoinById
// [action] /api/game/QPAPIAddSubCoinById
message ASAddCoinById{
string Username = 1; // //
int64 Gold = 2; //

View File

@ -234,7 +234,7 @@ func (x *SALogin) GetSnid() int32 {
}
// 加币
// [action] /api/mongo.games.com/game/APIAddCoinById
// [action] /api/game/APIAddCoinById
type ASAddCoinById struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@ -600,7 +600,7 @@ func (x *SAMemberGold) GetData() *PlayerCoinData {
return nil
}
//校验碰撞游戏Hash /api/mongo.games.com/game/CrashVerifier
// 校验碰撞游戏Hash /api/game/CrashVerifier
type ASCrachHash struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache

View File

@ -29,7 +29,7 @@ message SALogin{
}
//
// [action] /api/mongo.games.com/game/APIAddCoinById
// [action] /api/game/APIAddCoinById
message ASAddCoinById{
int32 ID = 1;//id
int64 Gold = 2;//
@ -66,7 +66,7 @@ message SAMemberGold{
PlayerCoinData Data = 3; //
}
//Hash /api/mongo.games.com/game/CrashVerifier
//Hash /api/game/CrashVerifier
message ASCrachHash{
string Hash = 1;//
int32 Wheel = 2;//

View File

@ -7,9 +7,9 @@
package webapi
import (
"mongo.games.com/game/protocol/server"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
"mongo.games.com/game/protocol/server"
reflect "reflect"
sync "sync"
)
@ -3206,7 +3206,7 @@ func (x *ExchangeType) GetId() int32 {
return 0
}
// etcd /mongo.games.com/game/exchange_shop
// etcd /game/exchange_shop
type ExchangeShopList struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@ -3477,7 +3477,7 @@ func (x *ItemShop) GetFirstSwitch() bool {
return false
}
// etcd /mongo.games.com/game/item_shop
// etcd /game/item_shop
type ItemShopList struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@ -3900,7 +3900,7 @@ func (x *GameMatchDate) GetOnChannelName() []string {
return nil
}
// etcd /mongo.games.com/game/game_match
// etcd /game/game_match
type GameMatchDateList struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@ -4129,7 +4129,7 @@ func (x *WelfareTurnplateRate) GetRate() []int32 {
return nil
}
// etcd /mongo.games.com/game/act_turnplate 转盘
// etcd /game/act_turnplate 转盘
type WelfareTurnplateDateList struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@ -4319,7 +4319,7 @@ func (x *Welfare7SignDate) GetAddUpDate() []*AddUpWelfareDate {
return nil
}
// etcd /mongo.games.com/game/act_7sign 7日签到
// etcd /game/act_7sign 7日签到
type Welfare7SignDateList struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@ -4494,7 +4494,7 @@ func (x *BlindBoxData) GetItem_Id() int32 {
return 0
}
// etcd /mongo.games.com/game/act_blindbox 盲盒
// etcd /game/act_blindbox 盲盒
type WelfareBlindBoxDataList struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@ -4669,7 +4669,7 @@ func (x *WelfareSpree) GetDiscount() float64 {
return 0
}
// etcd /mongo.games.com/game/act_FirstPay 首充
// etcd /game/act_FirstPay 首充
type WelfareFirstPayDataList struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@ -4741,7 +4741,7 @@ func (x *WelfareFirstPayDataList) GetCycle() int32 {
return 0
}
// etcd /mongo.games.com/game/act_ContinuousPay 连续充值
// etcd /game/act_ContinuousPay 连续充值
type WelfareContinuousPayDataList struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@ -4988,7 +4988,7 @@ func (x *VIPcfg) GetShopId7() int32 {
return 0
}
// etcd /mongo.games.com/game/VIPcfg VIP配置
// etcd /game/VIPcfg VIP配置
type VIPcfgDataList struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@ -5559,7 +5559,7 @@ func (x *GameConfig) GetGoodFenCha() int32 {
return 0
}
// etcd mongo.games.com/game/act_phoneLottery
// etcd /game/act_phoneLottery
type WelfarePhoneLotteryStatus struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@ -5615,6 +5615,62 @@ func (x *WelfarePhoneLotteryStatus) GetSwitch() int32 {
return 0
}
// etcd /game/act_collect
type WelfareCollectConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Platform string `protobuf:"bytes,1,opt,name=Platform,proto3" json:"Platform,omitempty"`
Switch int32 `protobuf:"varint,2,opt,name=Switch,proto3" json:"Switch,omitempty"` // 1.开启 2.关闭
}
func (x *WelfareCollectConfig) Reset() {
*x = WelfareCollectConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_common_proto_msgTypes[54]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *WelfareCollectConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*WelfareCollectConfig) ProtoMessage() {}
func (x *WelfareCollectConfig) ProtoReflect() protoreflect.Message {
mi := &file_common_proto_msgTypes[54]
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 WelfareCollectConfig.ProtoReflect.Descriptor instead.
func (*WelfareCollectConfig) Descriptor() ([]byte, []int) {
return file_common_proto_rawDescGZIP(), []int{54}
}
func (x *WelfareCollectConfig) GetPlatform() string {
if x != nil {
return x.Platform
}
return ""
}
func (x *WelfareCollectConfig) GetSwitch() int32 {
if x != nil {
return x.Switch
}
return 0
}
var File_common_proto protoreflect.FileDescriptor
var file_common_proto_rawDesc = []byte{
@ -6517,8 +6573,12 @@ 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, 0x16, 0x0a, 0x06, 0x53, 0x77, 0x69, 0x74,
0x63, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68,
0x42, 0x0a, 0x5a, 0x08, 0x2e, 0x3b, 0x77, 0x65, 0x62, 0x61, 0x70, 0x69, 0x62, 0x06, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x33,
0x22, 0x4a, 0x0a, 0x14, 0x57, 0x65, 0x6c, 0x66, 0x61, 0x72, 0x65, 0x43, 0x6f, 0x6c, 0x6c, 0x65,
0x63, 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, 0x16, 0x0a, 0x06, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x18, 0x02,
0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x42, 0x0a, 0x5a, 0x08,
0x2e, 0x3b, 0x77, 0x65, 0x62, 0x61, 0x70, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
@ -6533,7 +6593,7 @@ func file_common_proto_rawDescGZIP() []byte {
return file_common_proto_rawDescData
}
var file_common_proto_msgTypes = make([]protoimpl.MessageInfo, 59)
var file_common_proto_msgTypes = make([]protoimpl.MessageInfo, 60)
var file_common_proto_goTypes = []interface{}{
(*MysqlDbSetting)(nil), // 0: pb.MysqlDbSetting
(*MongoDbSetting)(nil), // 1: pb.MongoDbSetting
@ -6589,31 +6649,32 @@ var file_common_proto_goTypes = []interface{}{
(*PlayerPool)(nil), // 51: pb.PlayerPool
(*GameConfig)(nil), // 52: pb.GameConfig
(*WelfarePhoneLotteryStatus)(nil), // 53: pb.WelfarePhoneLotteryStatus
nil, // 54: pb.Platform.BindTelRewardEntry
nil, // 55: pb.PlayerData.RankScoreEntry
nil, // 56: pb.ItemShop.AwardEntry
nil, // 57: pb.VIPcfg.AwardEntry
nil, // 58: pb.VIPcfg.Privilege7Entry
(*server.DB_GameFree)(nil), // 59: pbdata.DB_GameFree
(*WelfareCollectConfig)(nil), // 54: pb.WelfareCollectConfig
nil, // 55: pb.Platform.BindTelRewardEntry
nil, // 56: pb.PlayerData.RankScoreEntry
nil, // 57: pb.ItemShop.AwardEntry
nil, // 58: pb.VIPcfg.AwardEntry
nil, // 59: pb.VIPcfg.Privilege7Entry
(*server.DB_GameFree)(nil), // 60: pbdata.DB_GameFree
}
var file_common_proto_depIdxs = []int32{
2, // 0: pb.Platform.Leaderboard:type_name -> pb.RankSwitch
3, // 1: pb.Platform.ClubConfig:type_name -> pb.ClubConfig
4, // 2: pb.Platform.ThirdGameMerchant:type_name -> pb.ThirdGame
54, // 3: pb.Platform.BindTelReward:type_name -> pb.Platform.BindTelRewardEntry
55, // 3: pb.Platform.BindTelReward:type_name -> pb.Platform.BindTelRewardEntry
6, // 4: pb.GameConfigGlobal.GameStatus:type_name -> pb.GameStatus
59, // 5: pb.GameFree.DbGameFree:type_name -> pbdata.DB_GameFree
60, // 5: pb.GameFree.DbGameFree:type_name -> pbdata.DB_GameFree
8, // 6: pb.PlatformGameConfig.DbGameFrees:type_name -> pb.GameFree
0, // 7: pb.PlatformDbConfig.Mysql:type_name -> pb.MysqlDbSetting
1, // 8: pb.PlatformDbConfig.MongoDb:type_name -> pb.MongoDbSetting
1, // 9: pb.PlatformDbConfig.MongoDbLog:type_name -> pb.MongoDbSetting
59, // 10: pb.GameConfigGroup.DbGameFree:type_name -> pbdata.DB_GameFree
55, // 11: pb.PlayerData.RankScore:type_name -> pb.PlayerData.RankScoreEntry
60, // 10: pb.GameConfigGroup.DbGameFree:type_name -> pbdata.DB_GameFree
56, // 11: pb.PlayerData.RankScore:type_name -> pb.PlayerData.RankScoreEntry
20, // 12: pb.OnlineReport.GameCount:type_name -> pb.OnlineGameCnt
22, // 13: pb.CommonNoticeList.List:type_name -> pb.CommonNotice
25, // 14: pb.ExchangeShop.ExType:type_name -> pb.ExchangeType
24, // 15: pb.ExchangeShopList.List:type_name -> pb.ExchangeShop
56, // 16: pb.ItemShop.Award:type_name -> pb.ItemShop.AwardEntry
57, // 16: pb.ItemShop.Award:type_name -> pb.ItemShop.AwardEntry
27, // 17: pb.ItemShopList.List:type_name -> pb.ItemShop
29, // 18: pb.MatchInfoAward.ItemId:type_name -> pb.ItemInfo
30, // 19: pb.GameMatchDate.Award:type_name -> pb.MatchInfoAward
@ -6630,8 +6691,8 @@ var file_common_proto_depIdxs = []int32{
33, // 30: pb.WelfareSpree.Item:type_name -> pb.WelfareDate
42, // 31: pb.WelfareFirstPayDataList.List:type_name -> pb.WelfareSpree
42, // 32: pb.WelfareContinuousPayDataList.List:type_name -> pb.WelfareSpree
57, // 33: pb.VIPcfg.Award:type_name -> pb.VIPcfg.AwardEntry
58, // 34: pb.VIPcfg.Privilege7:type_name -> pb.VIPcfg.Privilege7Entry
58, // 33: pb.VIPcfg.Award:type_name -> pb.VIPcfg.AwardEntry
59, // 34: pb.VIPcfg.Privilege7:type_name -> pb.VIPcfg.Privilege7Entry
45, // 35: pb.VIPcfgDataList.List:type_name -> pb.VIPcfg
33, // 36: pb.ChessRankConfig.Item:type_name -> pb.WelfareDate
49, // 37: pb.ChessRankcfgData.Datas:type_name -> pb.ChessRankConfig
@ -7297,6 +7358,18 @@ func file_common_proto_init() {
return nil
}
}
file_common_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*WelfareCollectConfig); 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{
@ -7304,7 +7377,7 @@ func file_common_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_common_proto_rawDesc,
NumEnums: 0,
NumMessages: 59,
NumMessages: 60,
NumExtensions: 0,
NumServices: 0,
},

View File

@ -362,7 +362,7 @@ message ExchangeType{
int32 Id = 4; //
}
// etcd /mongo.games.com/game/exchange_shop
// etcd /game/exchange_shop
message ExchangeShopList{
repeated ExchangeShop List = 1;
string Platform = 2;
@ -393,7 +393,7 @@ message ItemShop {
bool FirstSwitch = 22; //
}
// etcd /mongo.games.com/game/item_shop
// etcd /game/item_shop
message ItemShopList{
repeated ItemShop List = 1;
string Platform = 2;
@ -441,7 +441,7 @@ message GameMatchDate {
repeated string OnChannelName = 23; //
}
// etcd /mongo.games.com/game/game_match
// etcd /game/game_match
message GameMatchDateList{
repeated GameMatchDate List = 1;
string Platform = 2;
@ -464,7 +464,7 @@ message WelfareTurnplateRate {
repeated int32 Rate = 1; //
}
// etcd /mongo.games.com/game/act_turnplate
// etcd /game/act_turnplate
message WelfareTurnplateDateList{
repeated WelfareTurnplateDate List = 1; //
repeated WelfareTurnplateRate RateList = 2; //
@ -484,7 +484,7 @@ message Welfare7SignDate {
}
// etcd /mongo.games.com/game/act_7sign 7
// etcd /game/act_7sign 7
message Welfare7SignDateList{
repeated Welfare7SignDate List = 1; //
string Platform = 2;
@ -503,7 +503,7 @@ message BlindBoxData {
int32 Item_Id = 9; // id
}
// etcd /mongo.games.com/game/act_blindbox
// etcd /game/act_blindbox
message WelfareBlindBoxDataList{
repeated BlindBoxData List = 1; //
string Platform = 2;
@ -522,7 +522,7 @@ message WelfareSpree {
double Discount = 8; //
}
// etcd /mongo.games.com/game/act_FirstPay
// etcd /game/act_FirstPay
message WelfareFirstPayDataList{
repeated WelfareSpree List = 1;
string Platform = 2;
@ -530,7 +530,7 @@ message WelfareFirstPayDataList{
int32 Cycle = 4; // 1. 2.
}
// etcd /mongo.games.com/game/act_ContinuousPay
// etcd /game/act_ContinuousPay
message WelfareContinuousPayDataList{
repeated WelfareSpree List = 1; //
string Platform = 2;
@ -558,7 +558,7 @@ message VIPcfg {
int32 ShopId7 = 16;
}
// etcd /mongo.games.com/game/VIPcfg VIP配置
// etcd /game/VIPcfg VIP配置
message VIPcfgDataList{
repeated VIPcfg List = 1; // VIP配置
string Platform = 2;
@ -618,8 +618,14 @@ message GameConfig {
int32 GoodFenCha = 7; //
}
// etcd mongo.games.com/game/act_phoneLottery
// etcd /game/act_phoneLottery
message WelfarePhoneLotteryStatus{
string Platform = 1;
int32 Switch = 2; // 1. 2.
}
// etcd /game/act_collect
message WelfareCollectConfig{
string Platform = 1;
int32 Switch = 2; // 1. 2.
}

View File

@ -1000,7 +1000,7 @@ func (x *SAUpdateGameConfigGroup) GetMsg() string {
// /////////////////////////////////////////////////////////////////////////////////////
// 加币
// [action] /api/mongo.games.com/game/AddCoinById
// [action] /api/game/AddCoinById
type ASAddCoinById struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@ -1185,7 +1185,7 @@ func (x *SAAddCoinById) GetMsg() string {
}
// 重置水池
// [action] /api/mongo.games.com/game/ResetGamePool
// [action] /api/game/ResetGamePool
type ASResetGamePool struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@ -1329,7 +1329,7 @@ func (x *SAResetGamePool) GetMsg() string {
}
// 更新水池
// [action] /api/mongo.games.com/game/UpdateGamePool
// [action] /api/game/UpdateGamePool
type ASUpdateGamePool struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@ -1492,7 +1492,7 @@ func (x *SAUpdateGamePool) GetMsg() string {
// ResetTime
// //////////////////////////////////////////////////
// 查询水池gameid
// [action] /api/mongo.games.com/game/QueryGamePoolByGameId
// [action] /api/game/QueryGamePoolByGameId
type ASQueryGamePoolByGameId struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@ -1628,7 +1628,7 @@ func (x *SAQueryGamePoolByGameId) GetCoinPoolSetting() []*CoinPoolSetting {
}
// 查询水池
// [action] /api/mongo.games.com/game/QueryAllGamePool
// [action] /api/game/QueryAllGamePool
type ASQueryAllGamePool struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@ -2258,7 +2258,7 @@ func (x *SADestroyRoom) GetMsg() string {
}
// 单控
// [action] /api/mongo.games.com/game/SinglePlayerAdjust
// [action] /api/game/SinglePlayerAdjust
// PACKET_WG_SINGLEADJUST
type ASSinglePlayerAdjust struct {
state protoimpl.MessageState
@ -3861,7 +3861,7 @@ func (x *SABlackBySnId) GetMsg() string {
}
// 邮件
// [action] /api/mongo.games.com/game/CreateShortMessage
// [action] /api/game/CreateShortMessage
type ASCreateShortMessage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@ -4036,7 +4036,7 @@ func (x *SACreateShortMessage) GetMsg() string {
return ""
}
// [action] /api/mongo.games.com/game/QueryShortMessageList
// [action] /api/game/QueryShortMessageList
type ASQueryShortMessageList struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@ -4203,7 +4203,7 @@ func (x *SAQueryShortMessageList) GetMessageInfo() []*MessageInfo {
return nil
}
// [action] /api/mongo.games.com/game/DeleteShortMessage
// [action] /api/game/DeleteShortMessage
type ASDeleteShortMessage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@ -5290,7 +5290,7 @@ func (x *SAOnlineReportTotal) GetOnlineReport() *OnlineReport {
// /////////////////////////////////////////////////////////////////////////////////////
// 加币
// [action] /api/mongo.games.com/game/AddCoinByIdAndPT
// [action] /api/game/AddCoinByIdAndPT
type ASAddCoinByIdAndPT struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@ -5522,7 +5522,7 @@ func (x *JybInfoAward) GetDiamond() int64 {
}
// 生成兑换码
// [action] /api/mongo.games.com/game/CreateJYB
// [action] /api/game/CreateJYB
type ASCreateJYB struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@ -5707,7 +5707,7 @@ func (x *SACreateJYB) GetMsg() string {
}
// 操作兑换码 删除 修改
// [action] /api/mongo.games.com/game/UpdateJYB
// [action] /api/game/UpdateJYB
type ASUpdateJYB struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@ -7618,7 +7618,7 @@ func (x *SACallbackPayment) GetMsg() string {
return ""
}
// 资源更新通知 [/api/mongo.games.com/game/resource]
// 资源更新通知 [/api/game/resource]
type ASResource struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache

View File

@ -163,7 +163,7 @@ message SAUpdateGameConfigGroup {
}
///////////////////////////////////////////////////////////////////////////////////////
//
// [action] /api/mongo.games.com/game/AddCoinById
// [action] /api/game/AddCoinById
message ASAddCoinById{
int32 ID = 1;//id
int64 Gold = 2;//
@ -183,7 +183,7 @@ message SAAddCoinById {
string Msg = 2; //()
}
//
// [action] /api/mongo.games.com/game/ResetGamePool
// [action] /api/game/ResetGamePool
message ASResetGamePool{
int32 GameFreeId = 1;
string Platform = 2;
@ -197,7 +197,7 @@ message SAResetGamePool{
string Msg = 2; //()
}
//
// [action] /api/mongo.games.com/game/UpdateGamePool
// [action] /api/game/UpdateGamePool
message ASUpdateGamePool{
int32 GameFreeId = 1;
string Platform = 2;
@ -237,7 +237,7 @@ message SAUpdateGamePool{
//ResetTime
////////////////////////////////////////////////////
//gameid
// [action] /api/mongo.games.com/game/QueryGamePoolByGameId
// [action] /api/game/QueryGamePoolByGameId
message ASQueryGamePoolByGameId{
int32 GameId = 1;
int32 GameMode = 2;
@ -250,7 +250,7 @@ message SAQueryGamePoolByGameId{
repeated pb.CoinPoolSetting CoinPoolSetting = 3;
}
//
// [action] /api/mongo.games.com/game/QueryAllGamePool
// [action] /api/game/QueryAllGamePool
message ASQueryAllGamePool{
int32 PageNo = 1;
int32 PageSize = 2;
@ -309,7 +309,7 @@ message SADestroyRoom{
string Msg = 2; //()
}
//
// [action] /api/mongo.games.com/game/SinglePlayerAdjust
// [action] /api/game/SinglePlayerAdjust
//PACKET_WG_SINGLEADJUST
message ASSinglePlayerAdjust{
int32 Opration = 1;//1.add 2.edit 3.del 4.
@ -455,7 +455,7 @@ message SABlackBySnId{
string Msg = 2; //()
}
//
// [action] /api/mongo.games.com/game/CreateShortMessage
// [action] /api/game/CreateShortMessage
message ASCreateShortMessage{
string NoticeTitle = 1;
string NoticeContent = 2;
@ -472,7 +472,7 @@ message SACreateShortMessage{
TagCode Tag = 1; //
string Msg = 2; //()
}
// [action] /api/mongo.games.com/game/QueryShortMessageList
// [action] /api/game/QueryShortMessageList
message ASQueryShortMessageList{
int64 StartTime = 1;
int64 EndTime = 2;
@ -488,7 +488,7 @@ message SAQueryShortMessageList{
int32 Count = 3;
repeated pb.MessageInfo MessageInfo = 4;
}
// [action] /api/mongo.games.com/game/DeleteShortMessage
// [action] /api/game/DeleteShortMessage
message ASDeleteShortMessage{
string Id = 1;
string Platform = 2;
@ -589,7 +589,7 @@ message SAOnlineReportTotal{
}
///////////////////////////////////////////////////////////////////////////////////////
//
// [action] /api/mongo.games.com/game/AddCoinByIdAndPT
// [action] /api/game/AddCoinByIdAndPT
message ASAddCoinByIdAndPT{
int32 ID = 1;//id
string Platform = 2;//
@ -615,7 +615,7 @@ message JybInfoAward {
}
//
// [action] /api/mongo.games.com/game/CreateJYB
// [action] /api/game/CreateJYB
message ASCreateJYB {
string Platform = 1; //
string Name = 2; //
@ -636,7 +636,7 @@ message SACreateJYB {
}
//
// [action] /api/mongo.games.com/game/UpdateJYB
// [action] /api/game/UpdateJYB
message ASUpdateJYB {
string Platform = 1; //
string JYBID = 2; // ID
@ -824,7 +824,7 @@ message SACallbackPayment{
string Msg = 2; //()
}
// [/api/mongo.games.com/game/resource]
// [/api/game/resource]
message ASResource{
string Msg = 1; //
}

View File

@ -116,6 +116,7 @@ const (
// 2900~2999
SPacketID_PACKET_CSWelfRelief SPacketID = 2900 //救济金信息
SPacketID_PACKET_SCWelfRelief SPacketID = 2901 //救济金信息
// 邀请活动
SPacketID_PACKET_CSInviteInfo SPacketID = 2902 //邀请信息
SPacketID_PACKET_SCInviteInfo SPacketID = 2903 //邀请信息
SPacketID_PACKET_CSBindInvite SPacketID = 2904 //绑定邀请人

View File

@ -36,9 +36,11 @@ enum SPacketID {
PACKET_SC_WELF_CONTINPAYINFO = 2597;//
PACKET_CS_WELF_CONTINPAY = 2598;//()
PACKET_SC_WELF_CONTINPAY = 2599;//
// 2900~2999
PACKET_CSWelfRelief = 2900;//
PACKET_SCWelfRelief = 2901;//
//
PACKET_CSInviteInfo = 2902;//
PACKET_SCInviteInfo = 2903;//
PACKET_CSBindInvite = 2904;//

Binary file not shown.