This commit is contained in:
xichaoyin 2024-01-02 15:24:01 +08:00
commit 57faacbe9b
2 changed files with 6 additions and 2 deletions

View File

@ -4,6 +4,9 @@ import {PlayerFun} from "../../public/player";
import {ReqYanShi, ResYanShi} from "../../shared/protocols/kuangdong/PtlYanShi";
export default async function (call: ApiCall<ReqYanShi, ResYanShi>) {
return call.errorCode(1)
let hdid = call.req.hdid
let con = await KuangDongfun.getCon(hdid)

View File

@ -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,