Commit a8e075cd authored by 吴春's avatar 吴春

1

parent 7948ffb6
......@@ -49,7 +49,8 @@ namespace Mall.WebApi.Controllers.MarketingCenter
/// 获取分享分类列表
/// </summary>
/// <returns></returns>
[AllowAnonymous] [RateValve(Policy = Policy.Ip, Limit = 10, Duration = 60)]
[AllowAnonymous]
[RateValve(Policy = Policy.Ip, Limit = 10, Duration = 60)]
public ApiResult GetShareCategoryList()
{
var query = JsonConvert.DeserializeObject<RB_Share_Category_Extend>(RequestParm.msg.ToString());
......@@ -114,7 +115,7 @@ namespace Mall.WebApi.Controllers.MarketingCenter
/// 获取分享详情分页列表
/// </summary>
/// <returns></returns>
[AllowAnonymous]
[AllowAnonymous]
[RateValve(Policy = Policy.Ip, Limit = 10, Duration = 60)]
public ApiResult GetShareFriendPageList()
{
......@@ -124,11 +125,11 @@ namespace Mall.WebApi.Controllers.MarketingCenter
var query = new RB_Share_Friend_Extend()
{
CateId = parm.GetInt("CateId"),
QStartDate=parm.GetStringValue("QStartDate"),
QEndDate=parm.GetStringValue("QEndDate"),
KeyWords=parm.GetStringValue("KeyWords"),
QStartDate = parm.GetStringValue("QStartDate"),
QEndDate = parm.GetStringValue("QEndDate"),
KeyWords = parm.GetStringValue("KeyWords"),
};
if (UserInfo != null&&UserInfo.TenantId>0)
if (UserInfo != null && UserInfo.TenantId > 0)
{
query.TenantId = UserInfo.TenantId;
}
......@@ -143,7 +144,8 @@ namespace Mall.WebApi.Controllers.MarketingCenter
/// 小程序获取分享分页列表
/// </summary>
/// <returns></returns>
[AllowAnonymous] [RateValve(Policy = Policy.Ip, Limit = 10, Duration = 60)]
[AllowAnonymous]
[RateValve(Policy = Policy.Ip, Limit = 10, Duration = 60)]
public ApiResult AppGetShareFriendPage()
{
var parms = RequestParm;
......@@ -163,8 +165,8 @@ namespace Mall.WebApi.Controllers.MarketingCenter
pagelist.count = Convert.ToInt32(count);
pagelist.pageData = list.Select(qitem => new
{
HeadImg=Common.Config.ReadConfigKey("ShareConfig", "ShareImg"),
UserName= "赞羊生活",
HeadImg = qitem.TenantId != 29 ? Common.Config.ReadConfigKey("ShareConfig", "ShareImg") : Common.Config.ReadConfigKey("HPSLShareConfig", "ShareImg"),
UserName = qitem.TenantId != 29 ? "赞羊生活" : "和平商旅",
qitem.Id,
qitem.MaterialInfo,
qitem.ImgList,
......@@ -176,7 +178,7 @@ namespace Mall.WebApi.Controllers.MarketingCenter
return ApiResult.Success("", pagelist);
}
/// <summary>
/// 获取分享详情列表
......@@ -202,16 +204,16 @@ namespace Mall.WebApi.Controllers.MarketingCenter
RB_Share_Friend_Extend extModel = new RB_Share_Friend_Extend()
{
Id = parm.GetInt("Id"),
CateId=parm.GetInt("CateId"),
GoodsId=parm.GetInt("GoodsId"),
CoverImg=parm.GetStringValue("CoverImg"),
MaterialImg=parm.GetStringValue("MaterialImg"),
MaterialInfo=parm.GetStringValue("MaterialInfo"),
LinkUrl=parm.GetStringValue("LinkUrl"),
IsTop=parm.GetInt("IsTop"),
SortNum=parm.GetInt("SortNum"),
IsUse=parm.GetInt("IsUse"),
ShareCount=parm.GetInt("ShareCount"),
CateId = parm.GetInt("CateId"),
GoodsId = parm.GetInt("GoodsId"),
CoverImg = parm.GetStringValue("CoverImg"),
MaterialImg = parm.GetStringValue("MaterialImg"),
MaterialInfo = parm.GetStringValue("MaterialInfo"),
LinkUrl = parm.GetStringValue("LinkUrl"),
IsTop = parm.GetInt("IsTop"),
SortNum = parm.GetInt("SortNum"),
IsUse = parm.GetInt("IsUse"),
ShareCount = parm.GetInt("ShareCount"),
};
extModel.TenantId = UserInfo.TenantId;
extModel.MallBaseId = RequestParm.MallBaseId;
......@@ -321,7 +323,8 @@ namespace Mall.WebApi.Controllers.MarketingCenter
/// 更新分享数量
/// </summary>
/// <returns></returns>
[AllowAnonymous] [RateValve(Policy = Policy.Ip, Limit = 10, Duration = 60)]
[AllowAnonymous]
[RateValve(Policy = Policy.Ip, Limit = 10, Duration = 60)]
public ApiResult SetShareCount()
{
JObject parm = JObject.Parse(RequestParm.msg.ToString());
......
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