邮件字段补充
This commit is contained in:
parent
8987508794
commit
a5402e1be0
@ -78,7 +78,9 @@ func (this *Mail) SendNewMail(mail *pb.DBMailData, uid ...string) bool {
|
|||||||
mail.ObjId = primitive.NewObjectID().Hex()
|
mail.ObjId = primitive.NewObjectID().Hex()
|
||||||
mail.Check = false
|
mail.Check = false
|
||||||
mail.Reward = true
|
mail.Reward = true
|
||||||
|
mail.Uid = id
|
||||||
|
mail.CreateTime = uint64(configure.Now().Unix())
|
||||||
|
mail.DueTime = uint64(configure.Now().Unix()) + 30*24*3600
|
||||||
if len(mail.GetItems()) > 0 {
|
if len(mail.GetItems()) > 0 {
|
||||||
mail.Reward = false
|
mail.Reward = false
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user