商品子页面完善

This commit is contained in:
陈淳
2022-10-25 09:47:30 +08:00
parent c29aeeee41
commit ac70fc37f6
11 changed files with 208 additions and 38 deletions

View File

@@ -6,6 +6,7 @@ using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Yi.Framework.Common.Enum;
using Yi.Framework.Common.Models;
namespace Yi.Framework.WebCore.MiddlewareExtend
@@ -69,8 +70,10 @@ namespace Yi.Framework.WebCore.MiddlewareExtend
{
resp = Result.Error(msg);
}
resp.SetCode((ResultCodeEnum)statusCode);
var result = JsonConvert.SerializeObject(resp);
context.Response.ContentType = "application/json;charset=utf-8";
return context.Response.WriteAsync(result);
}
}