diff --git a/src/oss/watchdog.json b/src/oss/watchdog.json index 9c21692..629f6b8 100644 --- a/src/oss/watchdog.json +++ b/src/oss/watchdog.json @@ -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万" } ] \ No newline at end of file diff --git a/src/public/player.ts b/src/public/player.ts index 9237363..2647bce 100644 --- a/src/public/player.ts +++ b/src/public/player.ts @@ -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); diff --git a/src/public/scheduler/scheduler_watchdog.ts b/src/public/scheduler/scheduler_watchdog.ts index 1b04b5c..8243d0c 100644 --- a/src/public/scheduler/scheduler_watchdog.ts +++ b/src/public/scheduler/scheduler_watchdog.ts @@ -14,8 +14,6 @@ export class WatchDog extends Scheduler { await this.ctorStartTime(); this.isReady = false; this.startTime = this.nextTime; - - this.start(); } async start() {