邮件一键领取bug

This commit is contained in:
mamengke01
2021-02-22 15:39:00 +08:00
parent 0f7b528d67
commit 60b2e6351f
5 changed files with 21 additions and 19 deletions
+2 -4
View File
@@ -34,8 +34,7 @@ export async function mailInit() {
let gmMail = new Map<number, any>();
let mails = await GMMailModel.getMails();
mails.map((o:any)=>{
let id:string = JSON.stringify(o._id);
o.id = id;
o.id = o._id.toString();
o.updatedAt = Math.floor(o.updatedAt.getTime()/1000);
let mail = gmMail.get(o.serverId);
if (!mail)
@@ -50,8 +49,7 @@ export async function mailInit() {
export function setMails(mails:GMMail[], gmMail) {
mails.map((o:any)=>{
let id:string = JSON.stringify(o._id);
o.id = id;
o.id = o._id.toString();
o.updatedAt = Math.floor(o.updatedAt.getTime()/1000);
o.sendName = o.sendName||'系统';
let mail = gmMail.get(o.serverId);