逻辑修改

This commit is contained in:
MHW
2026-04-13 17:10:52 +08:00
parent e57f0f19d5
commit 5f1ba38c6b

View File

@@ -121,7 +121,7 @@ public class BehaviortreeServiceImpl implements IBehaviortreeService
throw new RuntimeException(ExceptionConstants.PARAMETER_EXCEPTION);
}
Behaviortree behaviortree = behaviortreeMapper.selectBehaviortreeById(Long.valueOf(treeId));
if(ObjectUtil.isEmpty(behaviortree) && null == behaviortree.getId()){
if(ObjectUtil.isEmpty(behaviortree) || null == behaviortree.getId()){
throw new RuntimeException(ExceptionConstants.PARAMETER_EXCEPTION);
}
//根据行为树id获取行为树所属平台