This commit is contained in:
mxd 2022-06-08 21:09:13 +08:00
parent 3a902a8a21
commit 4178f35377

View File

@ -97,7 +97,7 @@ public class ApiInfo extends PathMagicEntity {
public Map<String, String> options() {
Map<String, String> map = this.options.stream()
.collect(Collectors.toMap(BaseDefinition::getName, it -> String.valueOf(it.getValue()), (o, n) -> n));
MagicConfiguration.getMagicResourceService().getGroupsByFileId(this.groupId)
MagicConfiguration.getMagicResourceService().getGroupsByFileId(this.id)
.stream()
.flatMap(it -> it.getOptions().stream())
.forEach(option -> {