From 61a8ae0fc990de08708de2e19c7be3c6ec900966 Mon Sep 17 00:00:00 2001 From: dy Date: Sun, 31 Dec 2023 17:04:59 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E9=BB=91=E5=B8=AE=E4=BA=89=E9=9C=B8?= =?UTF-8?q?=E5=8F=96=E5=8F=82=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api_s2c/hbzb/jfs/ApiOpen.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api_s2c/hbzb/jfs/ApiOpen.ts b/src/api_s2c/hbzb/jfs/ApiOpen.ts index bf7901e..fb732fb 100644 --- a/src/api_s2c/hbzb/jfs/ApiOpen.ts +++ b/src/api_s2c/hbzb/jfs/ApiOpen.ts @@ -29,7 +29,7 @@ export default async function (call: ApiCall) { //todo 健壮性处理 return call.errorCode(-4) } - if (callRes.res.enemy.length) + if (callRes.res?.enemy?.length) data.enemy = callRes.res.enemy.map(e => { return {...e, result: null}; });