From 51a31e4b91d8a40e9873b815fbb369ca7e586fb5 Mon Sep 17 00:00:00 2001 From: ciniao <4041990@qq.com> Date: Tue, 2 Jan 2024 09:45:38 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=AE=B9=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/gameLog.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gameLog.ts b/src/gameLog.ts index 255e644..c0cca31 100644 --- a/src/gameLog.ts +++ b/src/gameLog.ts @@ -30,16 +30,17 @@ async function connGameLogDB() { process.on('uncaughtException',function(err:Error){ - addErrorLog((err.stack).toString()); + addErrorLog((err?.stack)?.toString()); }) process.on('unhandledRejection', function (err:Error, promise) { - addErrorLog((err.stack).toString()); + addErrorLog((err?.stack)?.toString()); }) async function addErrorLog(errData:any){ try{ //g123测试版连接不上db,不抓取 + if(!errData)return; if(isG123stg())return; let log = { serverId : G.config.serverId, From 2c625416a8acdb0355f0ddb39b1faa643e6ebf9f Mon Sep 17 00:00:00 2001 From: dy Date: Tue, 2 Jan 2024 09:53:42 +0800 Subject: [PATCH 2/3] proto --- src/shared/protocols/serviceProto.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/shared/protocols/serviceProto.ts b/src/shared/protocols/serviceProto.ts index ec072a5..2dc1df9 100644 --- a/src/shared/protocols/serviceProto.ts +++ b/src/shared/protocols/serviceProto.ts @@ -7270,6 +7270,14 @@ export const serviceProto: ServiceProto = { "type": "Number" } } + }, + { + "id": 7, + "name": "week", + "type": { + "type": "Number" + }, + "optional": true } ] }, From 76c96b7abbed408042ab3437df020a2aa6f16ff1 Mon Sep 17 00:00:00 2001 From: dy Date: Tue, 2 Jan 2024 11:10:27 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E6=9A=82=E6=97=B6=E5=B1=8F=E8=94=BD?= =?UTF-8?q?=E7=9F=BF=E6=B4=9E=E5=BB=B6=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api_s2c/kuangdong/ApiYanShi.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/api_s2c/kuangdong/ApiYanShi.ts b/src/api_s2c/kuangdong/ApiYanShi.ts index ac0be05..4ab56b8 100644 --- a/src/api_s2c/kuangdong/ApiYanShi.ts +++ b/src/api_s2c/kuangdong/ApiYanShi.ts @@ -4,6 +4,9 @@ import {PlayerFun} from "../../public/player"; import {ReqYanShi, ResYanShi} from "../../shared/protocols/kuangdong/PtlYanShi"; export default async function (call: ApiCall) { + + return call.errorCode(1) + let hdid = call.req.hdid let con = await KuangDongfun.getCon(hdid)