This commit is contained in:
aozhiwei 2024-04-22 08:44:59 +08:00
parent 0d9060ff18
commit 5d40750280
2 changed files with 12 additions and 18 deletions

View File

@ -0,0 +1,10 @@
package model
type inbox struct {
}
var Inbox = new(inbox)
func (this *inbox) Mark(accountId string, mailId int64) {
}

View File

@ -6,6 +6,7 @@ import (
"sync"
"main/common"
"main/constant"
"main/model"
)
type inbox struct {
@ -49,24 +50,7 @@ func (this *player) MarkMails(mails []common.Mail) error {
if m.IsValid(this) {
mi := this.getInbox(m.GetMailId())
if mi == nil {
f5.GetGoStyleDb().Upsert(
constant.MAIL_DB,
"t_inbox",
[][]string{
},
[][]string{
},
[][]string{
},
func (err error, lastInsertId int64, rowsAffected int64) {
if err != nil {
resultErr = err
return
}
})
model.Inbox.Mark(this.GetAccountId(), m.GetMailId())
}
}
if resultErr != nil {