diff --git a/src/public/tanxian.ts b/src/public/tanxian.ts index f593a41..9ea5740 100644 --- a/src/public/tanxian.ts +++ b/src/public/tanxian.ts @@ -1,6 +1,7 @@ import {ApiCall} from 'tsrpc'; import {ResOpen} from '../shared/protocols/tanxian/PtlOpen'; import {TeQuanFun} from './tequan'; +import {addGameLog} from "../gameLog"; type dataChange = Partial; @@ -24,6 +25,7 @@ export class TanXianFun { static async changeDataNew(call: ApiCall, change) { let {_id, uid, ...data} = (await G.mongodb.collection('tanxian').findOneAndUpdate({uid: call.uid}, change, {returnDocument: 'after'})).value; G.ioredis.setex(`tanxian:${uid}`, 600, JSON.stringify(data)); + addGameLog(call.uid, "_fastguajiChange", {}, data) } /**获取探险数据 */