From 1d4a34c266b1c4b58c175e3e70e9191fbd20dc96 Mon Sep 17 00:00:00 2001 From: dy Date: Fri, 15 Dec 2023 10:46:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B6,=E6=9A=82=E6=97=B6=E5=B1=8F?= =?UTF-8?q?=E8=94=BD=E5=85=B6=E4=BB=96=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api_s2c/event/christmas/ApiGame.ts | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/src/api_s2c/event/christmas/ApiGame.ts b/src/api_s2c/event/christmas/ApiGame.ts index e3cd097..07e2400 100644 --- a/src/api_s2c/event/christmas/ApiGame.ts +++ b/src/api_s2c/event/christmas/ApiGame.ts @@ -1,26 +1,7 @@ import { ApiCall } from "tsrpc"; import { ReqGame, ResGame } from "../../../shared/protocols/event/christmas/PtlGame"; -import { HongDianChange } from "../../hongdian/fun"; -import { Christmasfun } from "./fun"; -import {PlayerFun} from "../../../public/player"; - export default async function (call: ApiCall) { - let initCon = await Christmasfun.getCon(call) - let need = initCon[call.req.hdid].data.gameneed; - let addval = initCon[call.req.hdid].data.game[call.req.index]; - // 判断消耗是否满足 - await PlayerFun.checkNeedIsMeet(call, need); - // 扣除消耗 - await PlayerFun.cutNeed(call, need); - - let _mydata = await Christmasfun.getMyData(call, call.req.hdid) - let _setData = {} - _mydata["val"] += addval - _setData["val"] = _mydata["val"] - await Christmasfun.setMyData(call.uid, call.req.hdid, { $set: _setData }) - let changedata = { mydata: _mydata} - // 推送红点 - HongDianChange.sendChangeKey(call.uid, ['huodonghd']); - call.succ(changedata); + // TODO + call.error('API Not Implemented'); } \ No newline at end of file