fix 黑帮争霸取参错误
This commit is contained in:
parent
17ae62472e
commit
61a8ae0fc9
@ -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};
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user