李昊 4 年之前
父節點
當前提交
c4d2f2f1c5
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      gx_api/GxPress/Repository/GxPress.Repository.Implement/Media/MediaRepository.cs

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

@@ -189,6 +189,7 @@ namespace GxPress.Repository.Implement.Media
                     }
                     }
                     categoryName = categoryName.Remove(categoryName.Length - 1, 1);
                     categoryName = categoryName.Remove(categoryName.Length - 1, 1);
                     model.CategoryName = categoryName;
                     model.CategoryName = categoryName;
+                    model.IsLibrary = result.MediaLibraryResults.Count > 0;
                     await _repository.UpdateAsync(model);
                     await _repository.UpdateAsync(model);
                     //删除媒体库
                     //删除媒体库
                     await mediaLibraryRepository.DeleteAsync(Q.Where(nameof(Entity.tede2.Media.MediaLibrary.MediaId), result.Id));
                     await mediaLibraryRepository.DeleteAsync(Q.Where(nameof(Entity.tede2.Media.MediaLibrary.MediaId), result.Id));