活动礼包

This commit is contained in:
meixiongfeng 2023-07-31 17:13:58 +08:00
parent db2ca38d15
commit 6b093203f3
3 changed files with 6 additions and 0 deletions

View File

@ -465,6 +465,7 @@ type (
ModulePayDelivery(session IUserSession, Productid string, Price int32) (errdata *pb.ErrorData)
//开启活动
OpenActivity(atype int32, opentime int64)
IActivityNotice
}
//支付发货
IPayDelivery interface {

View File

@ -60,6 +60,7 @@ func (this *Activity) Start() (err error) {
if module, err = this.service.GetModule(comm.ModulePay); err == nil {
if m, ok := module.(comm.IPay); ok {
m.OpenActivity(1, rst.Stime)
m.ActivityNotice(rst)
}
}
}

View File

@ -275,3 +275,7 @@ func (this *Pay) ModulePayDelivery(session comm.IUserSession, Productid string,
func (this *Pay) OpenActivity(atype int32, opentime int64) {
this.modelActivity.setopentime(atype, opentime)
}
func (this *Pay) ActivityNotice(hdlist *pb.DBHuodong) {
}