fix 黑帮争霸取参错误

This commit is contained in:
dy 2023-12-31 17:04:59 +08:00
parent 17ae62472e
commit 61a8ae0fc9

View File

@ -29,7 +29,7 @@ export default async function (call: ApiCall<ReqOpen, ResOpen>) {
//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};
});