fix 探险 gamelog
This commit is contained in:
parent
6233a6672e
commit
60d0e04e33
@ -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<ResOpen>;
|
||||
|
||||
@ -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)
|
||||
}
|
||||
|
||||
/**获取探险数据 */
|
||||
|
Loading…
Reference in New Issue
Block a user