李昊 4 роки тому
батько
коміт
f5fe6f8130

+ 2 - 0
gx_api/GxPress/Repository/GxPress.Repository.Implement/Navigation/MiddleLableNexusRepository.cs

@@ -70,6 +70,8 @@ namespace GxPress.Repository.Implement.Navigation
         {
             return await _repository.DeleteAsync(Q.Where(nameof(Entity.Navigations.MiddleLableNexus.MiddleLableId), middleLableId)) > 0;
         }
+
+        
         public async Task<bool> UpdateAsync(int middleLableId, List<MiddleLableNexusUpRequest> middleLableNexusUpRequests)
         {
             try

+ 2 - 0
gx_api/GxPress/Service/GxPress.Service.Implement/AppHomePage/AppHomePageService.cs

@@ -188,6 +188,8 @@ namespace GxPress.Service.Implement.AppHomePage
         {
             //获取标签
             var systemLabel = await _systemLabelRepository.GetAsync(request.LableId);
+            if (systemLabel == null)
+                return null;
             var ids = await _mediaLableRepository.GetMediaIdsAysnc(request.LableId);
             request.Ids = ids.ToList();
             request.Limit = systemLabel.PageSize;