From 60d0e04e3311fcee3adad799b8e708e1877ed50d Mon Sep 17 00:00:00 2001 From: dy Date: Wed, 3 Jan 2024 19:36:28 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E6=8E=A2=E9=99=A9=20gamelog?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/public/tanxian.ts | 2 ++ 1 file changed, 2 insertions(+) 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) } /**获取探险数据 */