This commit is contained in:
hahwu 2025-04-18 09:41:27 +08:00
parent 0801743ee0
commit cd38d8cb43
2 changed files with 13 additions and 3 deletions

View File

@ -4018,7 +4018,8 @@ func ReqCatTrickReward(player *Player, buf []byte) error {
player.PlayMod.save()
player.PushClientRes(LimitedTimeEventMod.BackData())
player.PushClientRes(&msg.ResCatTrickReward{
Code: msg.RES_CODE_SUCCESS,
Code: msg.RES_CODE_SUCCESS,
IsClose: !LimitedTimeEventMod.CheckExist(limitedTimeEvent.EVENT_TYPE_CAT_TRICK),
})
return nil
}

View File

@ -11194,6 +11194,7 @@ type ResCatTrickReward struct {
state protoimpl.MessageState `protogen:"open.v1"`
Code RES_CODE `protobuf:"varint,1,opt,name=Code,proto3,enum=tutorial.RES_CODE" json:"Code,omitempty"`
Msg string `protobuf:"bytes,2,opt,name=Msg,proto3" json:"Msg,omitempty"`
IsClose bool `protobuf:"varint,3,opt,name=IsClose,proto3" json:"IsClose,omitempty"` // 是否关闭
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
@ -11242,6 +11243,13 @@ func (x *ResCatTrickReward) GetMsg() string {
return ""
}
func (x *ResCatTrickReward) GetIsClose() bool {
if x != nil {
return x.IsClose
}
return false
}
// 搜索好友
type ReqSearchPlayer struct {
state protoimpl.MessageState `protogen:"open.v1"`
@ -22803,10 +22811,11 @@ const file_proto_Gameapi_proto_rawDesc = "" +
"\x03Msg\x18\x02 \x01(\tR\x03Msg\x12\x18\n" +
"\aEndTime\x18\x03 \x01(\x03R\aEndTime\x12\x10\n" +
"\x03Num\x18\x04 \x01(\x05R\x03Num\"\x13\n" +
"\x11ReqCatTrickReward\"M\n" +
"\x11ReqCatTrickReward\"g\n" +
"\x11ResCatTrickReward\x12&\n" +
"\x04Code\x18\x01 \x01(\x0e2\x12.tutorial.RES_CODER\x04Code\x12\x10\n" +
"\x03Msg\x18\x02 \x01(\tR\x03Msg\"#\n" +
"\x03Msg\x18\x02 \x01(\tR\x03Msg\x12\x18\n" +
"\aIsClose\x18\x03 \x01(\bR\aIsClose\"#\n" +
"\x0fReqSearchPlayer\x12\x10\n" +
"\x03Uid\x18\x01 \x01(\tR\x03Uid\"T\n" +
"\x0fResSearchPlayer\x12\x12\n" +