李昊 4 年之前
父节点
当前提交
99a8c9fe69
共有 1 个文件被更改,包括 8 次插入5 次删除
  1. 8 5
      gx_api/GxPress/Api/GxPress.Api/WebControllers/WebMeetingController.cs

+ 8 - 5
gx_api/GxPress/Api/GxPress.Api/WebControllers/WebMeetingController.cs

@@ -18,6 +18,7 @@ using GxPress.Repository.Interface.FlowAttachment;
 using GxPress.Service.Interface.UserMiddle;
 using GxPress.Service.Interface.Analyze;
 using GxPress.Request.Analyze;
+using GxPress.EnumConst;
 
 namespace GxPress.Api.WebControllers
 {
@@ -449,11 +450,13 @@ namespace GxPress.Api.WebControllers
             };
             //是否是自己创建
             meetingSummaryResult.IsAdmin = _loginContext.AccountId == summary.UserId;
-            var analyzeRequest = new Request.App.Analyze.AnalyzeRequest();
-            analyzeRequest.TypeValue = 10;
-            analyzeRequest.AnalyzeType = 1;
-            analyzeRequest.SourceId = meetingSummaryResult.Id;
-            analyzeRequest.UserId = _loginContext.AccountId;
+            var analyzeRequest = new Request.App.Analyze.AnalyzeRequest()
+            {
+                TypeValue = AllTypeConst.MeetingSummary.GetHashCode(),
+                AnalyzeType = 1,
+                SourceId = meetingSummaryResult.Id,
+                UserId = _loginContext.AccountId
+            };
             //点赞数量
             meetingSummaryResult.PraiseCount = await _analyzeService.CountAsync(analyzeRequest);
             //获取话题的评论数量