Commit aad87dd8 authored by liudong1993's avatar liudong1993

后台评论

parent b0b669f9
...@@ -2991,6 +2991,7 @@ namespace Mall.WebApi.Controllers.MallBase ...@@ -2991,6 +2991,7 @@ namespace Mall.WebApi.Controllers.MallBase
x.GoodsId, x.GoodsId,
x.GoodsName, x.GoodsName,
x.CoverImage, x.CoverImage,
x.CommentScore,
x.CommentGrade, x.CommentGrade,
CommentGradeName = x.CommentGrade.GetEnumName(), CommentGradeName = x.CommentGrade.GetEnumName(),
x.CommentImgList, x.CommentImgList,
...@@ -3036,6 +3037,7 @@ namespace Mall.WebApi.Controllers.MallBase ...@@ -3036,6 +3037,7 @@ namespace Mall.WebApi.Controllers.MallBase
{ {
return ApiResult.ParamIsNull("请选择评分"); return ApiResult.ParamIsNull("请选择评分");
} }
demodel.CommentScore ??= 5;
demodel.CommentImage = ""; demodel.CommentImage = "";
if (demodel.CommentImgList != null && demodel.CommentImgList.Any()) if (demodel.CommentImgList != null && demodel.CommentImgList.Any())
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment