From d44d6069a9ec1efd7cd8ebd235d7cf5e53824204 Mon Sep 17 00:00:00 2001 From: liwei <2211068034@qq.com> Date: Wed, 2 Aug 2023 16:43:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=94=AF=E4=BB=98=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- comm/imodule.go | 1 + modules/pay/module.go | 5 +++++ modules/shopcenter/module.go | 7 ++++++- modules/warorder/module.go | 7 ++++++- services/worker/main.go | 2 ++ 5 files changed, 20 insertions(+), 2 deletions(-) diff --git a/comm/imodule.go b/comm/imodule.go index 7ecffc543..c3d6a9d61 100644 --- a/comm/imodule.go +++ b/comm/imodule.go @@ -622,6 +622,7 @@ type ( //购物中心 IShopcenter interface { + IActivityNotice IPayDelivery } ) diff --git a/modules/pay/module.go b/modules/pay/module.go index 7ff583536..44fb7db5d 100644 --- a/modules/pay/module.go +++ b/modules/pay/module.go @@ -293,3 +293,8 @@ func (this *Pay) ActivityOpenNotice(hdlist *pb.DBHuodong) { break } } + +// 活动关闭 +func (this *Pay) ActivityCloseNotice(hdlist *pb.DBHuodong) { + +} diff --git a/modules/shopcenter/module.go b/modules/shopcenter/module.go index 52cb5864c..040de2734 100644 --- a/modules/shopcenter/module.go +++ b/modules/shopcenter/module.go @@ -24,7 +24,7 @@ func NewModule() core.IModule { } func (this *ShopCenter) GetType() core.M_Modules { - return comm.ModuleHeroTask + return comm.ModuleShopCenter } func (this *ShopCenter) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) { @@ -65,6 +65,11 @@ func (this *ShopCenter) ActivityNotice(hdlist *pb.DBHuodong) { } } +// 活动关闭 +func (this *ShopCenter) ActivityCloseNotice(hdlist *pb.DBHuodong) { + +} + // 发货 func (this *ShopCenter) Delivery(session comm.IUserSession, pid string) (errdata *pb.ErrorData, items []*pb.UserAssets) { var ( diff --git a/modules/warorder/module.go b/modules/warorder/module.go index 7eee43218..00165a056 100644 --- a/modules/warorder/module.go +++ b/modules/warorder/module.go @@ -86,7 +86,7 @@ func (this *Warorder) Delivery(session comm.IUserSession, pid string) (errdata * return } -// 开启战令 +// 活动开启 func (this *Warorder) ActivityOpenNotice(hdlist *pb.DBHuodong) { switch hdlist.Itype { case comm.HdTypeWarorder: @@ -94,3 +94,8 @@ func (this *Warorder) ActivityOpenNotice(hdlist *pb.DBHuodong) { break } } + +// 活动关闭 +func (this *Warorder) ActivityCloseNotice(hdlist *pb.DBHuodong) { + +} diff --git a/services/worker/main.go b/services/worker/main.go index 4625997d3..a3e94fb00 100644 --- a/services/worker/main.go +++ b/services/worker/main.go @@ -48,6 +48,7 @@ import ( "go_dreamfactory/modules/reddot" "go_dreamfactory/modules/reputation" "go_dreamfactory/modules/shop" + "go_dreamfactory/modules/shopcenter" "go_dreamfactory/modules/smithy" "go_dreamfactory/modules/sociaty" "go_dreamfactory/modules/stonehenge" @@ -146,6 +147,7 @@ func main() { mainline.NewModule(), kftask.NewModule(), herotask.NewModule(), + shopcenter.NewModule(), ) }