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(), ) }