Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mall.oytour.com
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄奎
mall.oytour.com
Commits
a8e075cd
Commit
a8e075cd
authored
Feb 23, 2024
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
7948ffb6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
21 deletions
+24
-21
ShareController.cs
Mall.WebApi/Controllers/MarketingCenter/ShareController.cs
+24
-21
No files found.
Mall.WebApi/Controllers/MarketingCenter/ShareController.cs
View file @
a8e075cd
...
...
@@ -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
());
...
...
@@ -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
(
"HPSL
ShareConfig"
,
"ShareImg"
),
UserName
=
qitem
.
TenantId
!=
29
?
"赞羊生活"
:
"和平商旅
"
,
qitem
.
Id
,
qitem
.
MaterialInfo
,
qitem
.
ImgList
,
...
...
@@ -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
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment