|
|
@@ -238,8 +238,8 @@ func (this *RoleMail) setMailReward(mail *serverproto.MailContent) {
|
|
|
mail.State |= 2
|
|
|
delete(this.unRewardMailList, mail.Id)
|
|
|
delete(this.unreadMailList, mail.Id)
|
|
|
- this.saveMailSet.Add(mail.Id)
|
|
|
- this.SetDirty(true)
|
|
|
+ //this.saveMailSet.Add(mail.Id)
|
|
|
+ //this.SetDirty(true)
|
|
|
}
|
|
|
func (this *RoleMail) addDelMail(mailId int32) {
|
|
|
this.delMailSet = append(this.delMailSet, mailId)
|
|
|
@@ -365,7 +365,7 @@ func (this *RoleMail) doMailReward(mail *serverproto.MailContent, addItemList ma
|
|
|
for _, data := range mail.RewardList {
|
|
|
addItemList[data.Key] += data.Value
|
|
|
}
|
|
|
- //this.setMailRead(mail)
|
|
|
+ this.setMailRead(mail)
|
|
|
this.setMailReward(mail)
|
|
|
return serverproto.ErrorCode_ERROR_OK
|
|
|
}
|