数据监控
This commit is contained in:
parent
ad15cf73bf
commit
78c306ce5e
@ -1,7 +1,22 @@
|
||||
[
|
||||
{
|
||||
"key":"task/Open",
|
||||
"limit":0,
|
||||
"tips":"任务打开次数超过3次"
|
||||
"key":"jiuba/Lottery",
|
||||
"limit":300,
|
||||
"tips":"酒馆抽取次数达到300次"
|
||||
},
|
||||
{
|
||||
"key":"got_jinbi",
|
||||
"limit":200000000,
|
||||
"tips":"jinbi获取达到20亿"
|
||||
},
|
||||
{
|
||||
"key":"got_rmbmoney",
|
||||
"limit":30000,
|
||||
"tips":"钻石获取达到3万"
|
||||
},
|
||||
{
|
||||
"key":"use_attr_rmbmoney",
|
||||
"limit":100000,
|
||||
"tips":"钻石消耗达到10万"
|
||||
}
|
||||
]
|
@ -18,6 +18,7 @@ import {getItemByItemId, getItemNum} from './item';
|
||||
import {getGud, setGud} from './gud';
|
||||
import {addGameLog} from "../gameLog";
|
||||
import {PushGiftFun} from "./pushgift";
|
||||
import { ActionLog } from './actionLog/actionLog';
|
||||
|
||||
|
||||
export type call = {
|
||||
@ -178,6 +179,12 @@ export class PlayerFun {
|
||||
G.emit("Class_task_156", 'Class_task_156', call, -atn.n, 0);
|
||||
}
|
||||
}
|
||||
|
||||
if( (atn.t == 'rmbmoney' || atn.t == 'jinbi') && atn.n > 0 ){
|
||||
//统计今日获取的金币和钻石
|
||||
ActionLog.addDayLog(call.conn.uid, { key: 'got_'+atn.t, val: atn.n });
|
||||
}
|
||||
|
||||
// 增加vip经验的任务监听
|
||||
if (atn.t == "payExp" && atn.n > 0) {
|
||||
G.emit("Class_task_157", 'Class_task_157', call, atn.n, 0);
|
||||
|
@ -14,8 +14,6 @@ export class WatchDog extends Scheduler {
|
||||
await this.ctorStartTime();
|
||||
this.isReady = false;
|
||||
this.startTime = this.nextTime;
|
||||
|
||||
this.start();
|
||||
}
|
||||
|
||||
async start() {
|
||||
|
Loading…
Reference in New Issue
Block a user