Skip to content

Commit fd270f2

Browse files
committed
修复服务获取API列表是获取到别的服务的API
1 parent 4e0813d commit fd270f2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

module/router/iml.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,9 @@ func (i *imlRouterModule) Search(ctx context.Context, keyword string, serviceId
163163
if err != nil {
164164
return nil, err
165165
}
166+
if len(list) == 0 {
167+
return []*router_dto.Item{}, nil
168+
}
166169
apiInfos, err := i.apiService.ListInfo(ctx, utils.SliceToSlice(list, func(s *api.API) string {
167170
return s.UUID
168171
})...)

0 commit comments

Comments
 (0)