Merge branch 'bugfix' into dev

This commit is contained in:
xichaoyin 2024-01-09 22:24:00 +08:00
commit 12b1941aa1
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
import {fightResult} from '../shared/fightControl/fightType';
export type CollectionFightLog = fightResult & { uid: string, type: string };
export type CollectionFightLog = fightResult & { uid: string, type: string, ttl: Date};

View File

@ -144,7 +144,7 @@ export class FightFun {
let writeList = ['ganhai', 'jjc', 'hbzbJfs', 'hbzbZbs', 'slzd', 'clsl']
if (uid.indexOf('npc') != -1 || !writeList.includes(type)) return;
G.mongodb.collection('fightLog').insertOne({ uid, type, ...result })
G.mongodb.collection('fightLog').insertOne({ uid, type, ...result, ttl: new Date() })
}