李昊 %!s(int64=4) %!d(string=hai) anos
pai
achega
12141da6b8

+ 1 - 0
gx_api/GxPress/Repository/GxPress.Repository.Implement/Media/MediaRepository.cs

@@ -109,6 +109,7 @@ namespace GxPress.Repository.Implement.Media
                     }
                     categoryName = categoryName.Remove(categoryName.Length - 1, 1);
                     model.CategoryName = categoryName;
+                    model.IsLibrary = result.MediaLibraryResults.Count > 0;
                     var id = await _repository.InsertAsync(model);
                     if (id > 0)
                     {