Commit eac0fe5e authored by liudong1993's avatar liudong1993

取消编码转换

parent 84a9e017
...@@ -151,8 +151,8 @@ namespace Mall.WebApi.Controllers.MallBase ...@@ -151,8 +151,8 @@ namespace Mall.WebApi.Controllers.MallBase
try try
{ {
var miniModel = programModule.GetMiniProgramModule(new Model.Extend.User.RB_MiniProgram_Extend { TenantId = userInfo.TenantId, MallBaseId = userInfo.MallBaseId }); var miniModel = programModule.GetMiniProgramModule(new Model.Extend.User.RB_MiniProgram_Extend { TenantId = userInfo.TenantId, MallBaseId = userInfo.MallBaseId });
int violationNum = programMsgModule.CheckViolation(miniModel, StringHelper.FromUnicodeString(demodel.ActivityTitle)); int violationNum = programMsgModule.CheckViolation(miniModel, demodel.ActivityTitle);
int violationNum2 = programMsgModule.CheckViolation(miniModel, StringHelper.FromUnicodeString(demodel.Content)); int violationNum2 = programMsgModule.CheckViolation(miniModel, demodel.Content);
if (violationNum == 0 || violationNum2 == 0) if (violationNum == 0 || violationNum2 == 0)
{ {
return ApiResult.Failed("评论内容检测失败,请稍后再试"); return ApiResult.Failed("评论内容检测失败,请稍后再试");
...@@ -339,7 +339,7 @@ namespace Mall.WebApi.Controllers.MallBase ...@@ -339,7 +339,7 @@ namespace Mall.WebApi.Controllers.MallBase
try try
{ {
var miniModel = programModule.GetMiniProgramModule(new Model.Extend.User.RB_MiniProgram_Extend { TenantId = userInfo.TenantId, MallBaseId = userInfo.MallBaseId }); var miniModel = programModule.GetMiniProgramModule(new Model.Extend.User.RB_MiniProgram_Extend { TenantId = userInfo.TenantId, MallBaseId = userInfo.MallBaseId });
int violationNum = programMsgModule.CheckViolation(miniModel, StringHelper.FromUnicodeString(demodel.Content)); int violationNum = programMsgModule.CheckViolation(miniModel, demodel.Content);
if (violationNum == 0) if (violationNum == 0)
{ {
return ApiResult.Failed("评论内容检测失败,请稍后再试"); return ApiResult.Failed("评论内容检测失败,请稍后再试");
......
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