邮件接口扩展 新增动态参数
This commit is contained in:
parent
6cc41aa886
commit
23b0a66fd5
@ -53,7 +53,7 @@ type (
|
|||||||
// 所有邮件奖励统一调这个接口
|
// 所有邮件奖励统一调这个接口
|
||||||
SendRewardMailByCid(session IUserSession, cid string, res []*cfg.Gameatn) bool
|
SendRewardMailByCid(session IUserSession, cid string, res []*cfg.Gameatn) bool
|
||||||
// 批量发邮件结果: cid 邮件表ID, 没有附件 res 传空
|
// 批量发邮件结果: cid 邮件表ID, 没有附件 res 传空
|
||||||
SendMailToUsers(uids []string, cid string, res []*cfg.Gameatn) bool // 批量发送邮件 支持跨服
|
SendMailToUsers(uids []string, cid string, res []*cfg.Gameatn, param []string) bool // 批量发送邮件 支持跨服
|
||||||
}
|
}
|
||||||
//道具背包接口
|
//道具背包接口
|
||||||
IItems interface {
|
IItems interface {
|
||||||
|
@ -365,7 +365,7 @@ func (this *Mail) SendRewardMailByCid(session comm.IUserSession, cid string, res
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *Mail) SendMailToUsers(uids []string, cid string, res []*cfg.Gameatn) bool {
|
func (this *Mail) SendMailToUsers(uids []string, cid string, res []*cfg.Gameatn, param []string) bool {
|
||||||
var (
|
var (
|
||||||
resReward []*pb.UserAssets
|
resReward []*pb.UserAssets
|
||||||
)
|
)
|
||||||
@ -400,7 +400,7 @@ func (this *Mail) SendMailToUsers(uids []string, cid string, res []*cfg.Gameatn)
|
|||||||
DueTime: uint64(configure.Now().Unix() + int64(conf.Duration)*3600),
|
DueTime: uint64(configure.Now().Unix() + int64(conf.Duration)*3600),
|
||||||
Items: resReward,
|
Items: resReward,
|
||||||
Cid: cid,
|
Cid: cid,
|
||||||
Param: []string{},
|
Param: param,
|
||||||
}
|
}
|
||||||
dbModel := db.NewDBModel(comm.TableMail, time.Hour, conn)
|
dbModel := db.NewDBModel(comm.TableMail, time.Hour, conn)
|
||||||
mail.ObjId = primitive.NewObjectID().Hex()
|
mail.ObjId = primitive.NewObjectID().Hex()
|
||||||
@ -424,7 +424,7 @@ func (this *Mail) SendMailToUsers(uids []string, cid string, res []*cfg.Gameatn)
|
|||||||
DueTime: uint64(configure.Now().Unix() + int64(conf.Duration)*3600),
|
DueTime: uint64(configure.Now().Unix() + int64(conf.Duration)*3600),
|
||||||
Items: resReward,
|
Items: resReward,
|
||||||
Cid: cid,
|
Cid: cid,
|
||||||
Param: []string{},
|
Param: param,
|
||||||
}
|
}
|
||||||
mail.Uid = id
|
mail.Uid = id
|
||||||
mail.ObjId = primitive.NewObjectID().Hex()
|
mail.ObjId = primitive.NewObjectID().Hex()
|
||||||
|
Loading…
Reference in New Issue
Block a user