Commit a8e075cd authored by 吴春's avatar 吴春

1

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