上传日常任务功能开启推送
This commit is contained in:
parent
4b8b7e274c
commit
9adbc2492d
@ -344,19 +344,21 @@ func (this *WTask) ResetDailytaskTask(session comm.IUserSession, dailytaskid int
|
|||||||
wtask.Dailytaskgroup = dailytaskid
|
wtask.Dailytaskgroup = dailytaskid
|
||||||
wtask.Exchange = make(map[int32]int32)
|
wtask.Exchange = make(map[int32]int32)
|
||||||
wtask.Events = make(map[int32]int32)
|
wtask.Events = make(map[int32]int32)
|
||||||
if len(condiIds) > 0 {
|
// if len(condiIds) > 0 {
|
||||||
// if err = this.ModuleBuried.ActiveCondition(session.GetUserId(), condiIds...); err != nil {
|
// if err = this.ModuleBuried.ActiveCondition(session.GetUserId(), condiIds...); err != nil {
|
||||||
// errdata = &pb.ErrorData{
|
// errdata = &pb.ErrorData{
|
||||||
// Code: pb.ErrorCode_ExternalModule,
|
// Code: pb.ErrorCode_ExternalModule,
|
||||||
// Title: pb.ErrorCode_ExternalModule.ToString(),
|
// Title: pb.ErrorCode_ExternalModule.ToString(),
|
||||||
// Message: fmt.Sprintf("ModuleBuried.ActiveCondition uid:%s condiIds:%v", session.GetUserId(), condiIds),
|
// Message: fmt.Sprintf("ModuleBuried.ActiveCondition uid:%s condiIds:%v", session.GetUserId(), condiIds),
|
||||||
// }
|
// }
|
||||||
// return
|
// return
|
||||||
// }
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
//有新任务接取
|
//有新任务接取
|
||||||
this.pushtaskprogress(session, wtask, true)
|
// this.pushtaskprogress(session, wtask, true)
|
||||||
|
//推送日常任务信息
|
||||||
|
session.SendMsg(string(this.GetType()), "dailytaskchange", &pb.WTaskDailytaskChangePush{Dailytaskgroup: wtask.Dailytaskgroup, Activations: wtask.Activations})
|
||||||
if boxchange {
|
if boxchange {
|
||||||
session.SendMsg(string(this.GetType()), "boxchange", &pb.WTaskBoxChangePush{Boxs: wtask.Boxs})
|
session.SendMsg(string(this.GetType()), "boxchange", &pb.WTaskBoxChangePush{Boxs: wtask.Boxs})
|
||||||
}
|
}
|
||||||
|
@ -1523,6 +1523,62 @@ func (x *WTaskEventCompleteResp) GetAward() []*UserAtno {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//日常任务信息推送
|
||||||
|
type WTaskDailytaskChangePush struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Dailytaskgroup int32 `protobuf:"varint,1,opt,name=dailytaskgroup,proto3" json:"dailytaskgroup"` //日常任务组id
|
||||||
|
Activations []int32 `protobuf:"varint,2,rep,packed,name=activations,proto3" json:"activations"` //可接取任务列表
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *WTaskDailytaskChangePush) Reset() {
|
||||||
|
*x = WTaskDailytaskChangePush{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_wtask_wtask_msg_proto_msgTypes[27]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *WTaskDailytaskChangePush) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*WTaskDailytaskChangePush) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *WTaskDailytaskChangePush) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_wtask_wtask_msg_proto_msgTypes[27]
|
||||||
|
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 WTaskDailytaskChangePush.ProtoReflect.Descriptor instead.
|
||||||
|
func (*WTaskDailytaskChangePush) Descriptor() ([]byte, []int) {
|
||||||
|
return file_wtask_wtask_msg_proto_rawDescGZIP(), []int{27}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *WTaskDailytaskChangePush) GetDailytaskgroup() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Dailytaskgroup
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *WTaskDailytaskChangePush) GetActivations() []int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Activations
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
var File_wtask_wtask_msg_proto protoreflect.FileDescriptor
|
var File_wtask_wtask_msg_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
var file_wtask_wtask_msg_proto_rawDesc = []byte{
|
var file_wtask_wtask_msg_proto_rawDesc = []byte{
|
||||||
@ -1673,8 +1729,15 @@ var file_wtask_wtask_msg_proto_rawDesc = []byte{
|
|||||||
0x05, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e,
|
0x05, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e,
|
||||||
0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x1f,
|
0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x1f,
|
||||||
0x0a, 0x05, 0x61, 0x77, 0x61, 0x72, 0x64, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e,
|
0x0a, 0x05, 0x61, 0x77, 0x61, 0x72, 0x64, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e,
|
||||||
0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x6e, 0x6f, 0x52, 0x05, 0x61, 0x77, 0x61, 0x72, 0x64, 0x42,
|
0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x6e, 0x6f, 0x52, 0x05, 0x61, 0x77, 0x61, 0x72, 0x64, 0x22,
|
||||||
0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
0x64, 0x0a, 0x18, 0x57, 0x54, 0x61, 0x73, 0x6b, 0x44, 0x61, 0x69, 0x6c, 0x79, 0x74, 0x61, 0x73,
|
||||||
|
0x6b, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x75, 0x73, 0x68, 0x12, 0x26, 0x0a, 0x0e, 0x64,
|
||||||
|
0x61, 0x69, 0x6c, 0x79, 0x74, 0x61, 0x73, 0x6b, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x01, 0x20,
|
||||||
|
0x01, 0x28, 0x05, 0x52, 0x0e, 0x64, 0x61, 0x69, 0x6c, 0x79, 0x74, 0x61, 0x73, 0x6b, 0x67, 0x72,
|
||||||
|
0x6f, 0x75, 0x70, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f,
|
||||||
|
0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x05, 0x52, 0x0b, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61,
|
||||||
|
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70,
|
||||||
|
0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@ -1689,7 +1752,7 @@ func file_wtask_wtask_msg_proto_rawDescGZIP() []byte {
|
|||||||
return file_wtask_wtask_msg_proto_rawDescData
|
return file_wtask_wtask_msg_proto_rawDescData
|
||||||
}
|
}
|
||||||
|
|
||||||
var file_wtask_wtask_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 29)
|
var file_wtask_wtask_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 30)
|
||||||
var file_wtask_wtask_msg_proto_goTypes = []interface{}{
|
var file_wtask_wtask_msg_proto_goTypes = []interface{}{
|
||||||
(*WTaskInfoReq)(nil), // 0: WTaskInfoReq
|
(*WTaskInfoReq)(nil), // 0: WTaskInfoReq
|
||||||
(*WTaskInfoResp)(nil), // 1: WTaskInfoResp
|
(*WTaskInfoResp)(nil), // 1: WTaskInfoResp
|
||||||
@ -1718,38 +1781,39 @@ var file_wtask_wtask_msg_proto_goTypes = []interface{}{
|
|||||||
(*WTaskBattleEventResp)(nil), // 24: WTaskBattleEventResp
|
(*WTaskBattleEventResp)(nil), // 24: WTaskBattleEventResp
|
||||||
(*WTaskEventCompleteReq)(nil), // 25: WTaskEventCompleteReq
|
(*WTaskEventCompleteReq)(nil), // 25: WTaskEventCompleteReq
|
||||||
(*WTaskEventCompleteResp)(nil), // 26: WTaskEventCompleteResp
|
(*WTaskEventCompleteResp)(nil), // 26: WTaskEventCompleteResp
|
||||||
nil, // 27: WTaskFinishResp.GroupsEntry
|
(*WTaskDailytaskChangePush)(nil), // 27: WTaskDailytaskChangePush
|
||||||
nil, // 28: WTaskBoxChangePush.BoxsEntry
|
nil, // 28: WTaskFinishResp.GroupsEntry
|
||||||
(*DBWTask)(nil), // 29: DBWTask
|
nil, // 29: WTaskBoxChangePush.BoxsEntry
|
||||||
(*DBWTaskItem)(nil), // 30: DBWTaskItem
|
(*DBWTask)(nil), // 30: DBWTask
|
||||||
(*UserAtno)(nil), // 31: UserAtno
|
(*DBWTaskItem)(nil), // 31: DBWTaskItem
|
||||||
(*BattleFormation)(nil), // 32: BattleFormation
|
(*UserAtno)(nil), // 32: UserAtno
|
||||||
(*BattleInfo)(nil), // 33: BattleInfo
|
(*BattleFormation)(nil), // 33: BattleFormation
|
||||||
(*BattleReport)(nil), // 34: BattleReport
|
(*BattleInfo)(nil), // 34: BattleInfo
|
||||||
(*UserAssets)(nil), // 35: UserAssets
|
(*BattleReport)(nil), // 35: BattleReport
|
||||||
(*DBWTaskBox)(nil), // 36: DBWTaskBox
|
(*UserAssets)(nil), // 36: UserAssets
|
||||||
|
(*DBWTaskBox)(nil), // 37: DBWTaskBox
|
||||||
}
|
}
|
||||||
var file_wtask_wtask_msg_proto_depIdxs = []int32{
|
var file_wtask_wtask_msg_proto_depIdxs = []int32{
|
||||||
29, // 0: WTaskInfoResp.info:type_name -> DBWTask
|
30, // 0: WTaskInfoResp.info:type_name -> DBWTask
|
||||||
30, // 1: WTaskInfoResp.accepts:type_name -> DBWTaskItem
|
31, // 1: WTaskInfoResp.accepts:type_name -> DBWTaskItem
|
||||||
30, // 2: WTaskAcceptResp.accepts:type_name -> DBWTaskItem
|
31, // 2: WTaskAcceptResp.accepts:type_name -> DBWTaskItem
|
||||||
30, // 3: WTaskCompleteCondiResp.progress:type_name -> DBWTaskItem
|
31, // 3: WTaskCompleteCondiResp.progress:type_name -> DBWTaskItem
|
||||||
31, // 4: WTaskFinishResp.award:type_name -> UserAtno
|
32, // 4: WTaskFinishResp.award:type_name -> UserAtno
|
||||||
27, // 5: WTaskFinishResp.groups:type_name -> WTaskFinishResp.GroupsEntry
|
28, // 5: WTaskFinishResp.groups:type_name -> WTaskFinishResp.GroupsEntry
|
||||||
31, // 6: WTaskChapterRewardResp.award:type_name -> UserAtno
|
32, // 6: WTaskChapterRewardResp.award:type_name -> UserAtno
|
||||||
30, // 7: WTaskAcceptChangePush.accepts:type_name -> DBWTaskItem
|
31, // 7: WTaskAcceptChangePush.accepts:type_name -> DBWTaskItem
|
||||||
32, // 8: WTaskBattleStartReq.battle:type_name -> BattleFormation
|
33, // 8: WTaskBattleStartReq.battle:type_name -> BattleFormation
|
||||||
33, // 9: WTaskBattleStartResp.info:type_name -> BattleInfo
|
34, // 9: WTaskBattleStartResp.info:type_name -> BattleInfo
|
||||||
34, // 10: WTaskBattleFinishReq.report:type_name -> BattleReport
|
35, // 10: WTaskBattleFinishReq.report:type_name -> BattleReport
|
||||||
35, // 11: WTaskBattleFinishResp.award:type_name -> UserAssets
|
36, // 11: WTaskBattleFinishResp.award:type_name -> UserAssets
|
||||||
28, // 12: WTaskBoxChangePush.boxs:type_name -> WTaskBoxChangePush.BoxsEntry
|
29, // 12: WTaskBoxChangePush.boxs:type_name -> WTaskBoxChangePush.BoxsEntry
|
||||||
31, // 13: WTaskBoxReceiveResp.award:type_name -> UserAtno
|
32, // 13: WTaskBoxReceiveResp.award:type_name -> UserAtno
|
||||||
31, // 14: WTaskExchangeResp.award:type_name -> UserAtno
|
32, // 14: WTaskExchangeResp.award:type_name -> UserAtno
|
||||||
32, // 15: WTaskBattleEventReq.battle:type_name -> BattleFormation
|
33, // 15: WTaskBattleEventReq.battle:type_name -> BattleFormation
|
||||||
33, // 16: WTaskBattleEventResp.info:type_name -> BattleInfo
|
34, // 16: WTaskBattleEventResp.info:type_name -> BattleInfo
|
||||||
34, // 17: WTaskEventCompleteReq.report:type_name -> BattleReport
|
35, // 17: WTaskEventCompleteReq.report:type_name -> BattleReport
|
||||||
31, // 18: WTaskEventCompleteResp.award:type_name -> UserAtno
|
32, // 18: WTaskEventCompleteResp.award:type_name -> UserAtno
|
||||||
36, // 19: WTaskBoxChangePush.BoxsEntry.value:type_name -> DBWTaskBox
|
37, // 19: WTaskBoxChangePush.BoxsEntry.value:type_name -> DBWTaskBox
|
||||||
20, // [20:20] is the sub-list for method output_type
|
20, // [20:20] is the sub-list for method output_type
|
||||||
20, // [20:20] is the sub-list for method input_type
|
20, // [20:20] is the sub-list for method input_type
|
||||||
20, // [20:20] is the sub-list for extension type_name
|
20, // [20:20] is the sub-list for extension type_name
|
||||||
@ -2090,6 +2154,18 @@ func file_wtask_wtask_msg_proto_init() {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
file_wtask_wtask_msg_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*WTaskDailytaskChangePush); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
type x struct{}
|
type x struct{}
|
||||||
out := protoimpl.TypeBuilder{
|
out := protoimpl.TypeBuilder{
|
||||||
@ -2097,7 +2173,7 @@ func file_wtask_wtask_msg_proto_init() {
|
|||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: file_wtask_wtask_msg_proto_rawDesc,
|
RawDescriptor: file_wtask_wtask_msg_proto_rawDesc,
|
||||||
NumEnums: 0,
|
NumEnums: 0,
|
||||||
NumMessages: 29,
|
NumMessages: 30,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
NumServices: 0,
|
NumServices: 0,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user