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
d686bafa
Commit
d686bafa
authored
Mar 16, 2022
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
d6921e0e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
21 deletions
+24
-21
UserCommonModule.cs
Mall.Module.User/UserCommonModule.cs
+24
-21
No files found.
Mall.Module.User/UserCommonModule.cs
View file @
d686bafa
...
...
@@ -908,30 +908,33 @@ namespace Mall.Module.User
}
#
region
推送企业微信
string
GoodsName
=
orderGoodsList
.
FirstOrDefault
()?.
GoodsName
??
""
;
if
(
orderGoodsList
.
Count
()
>
1
)
{
GoodsName
+=
"等"
+
orderGoodsList
.
Count
()
+
"件商品"
;
}
var
pushMessage
=
new
if
(
oldOrder
.
OrderEduType
==
2
)
{
Msg
=
new
string
GoodsName
=
orderGoodsList
.
FirstOrDefault
()?.
GoodsName
??
""
;
if
(
orderGoodsList
.
Count
()
>
1
)
{
GoodsName
,
OrderNo
=
oldOrder
.
OrderNo
+
"("
+
oldOrder
.
OrderId
+
")"
,
Money
=
oldOrder
.
Income
,
OrderTime
=
Time_End
.
ToString
(
"yyyy-MM-dd HH:mm"
),
GroupId
=
100000
GoodsName
+=
"等"
+
orderGoodsList
.
Count
()
+
"件商品"
;
}
var
pushMessage
=
new
{
Msg
=
new
{
GoodsName
,
OrderNo
=
oldOrder
.
OrderNo
+
"("
+
oldOrder
.
OrderId
+
")"
,
Money
=
oldOrder
.
Income
,
OrderTime
=
Time_End
.
ToString
(
"yyyy-MM-dd HH:mm"
),
GroupId
=
100000
}
};
try
{
string
apiResult1
=
HttpHelper
.
HttpPost
(
Config
.
ReadConfigKey
(
"EduPushOrderProperty"
),
JsonHelper
.
Serialize
(
pushMessage
),
""
);
LogHelper
.
WriteInfo
(
"推送企业微信结果:"
+
apiResult1
);
}
catch
(
Exception
ex
)
{
LogHelper
.
Write
(
ex
,
"EduPushOrderProperty"
);
}
};
try
{
string
apiResult1
=
HttpHelper
.
HttpPost
(
Config
.
ReadConfigKey
(
"EduPushOrderProperty"
),
JsonHelper
.
Serialize
(
pushMessage
),
""
);
LogHelper
.
WriteInfo
(
"推送企业微信结果:"
+
apiResult1
);
}
catch
(
Exception
ex
)
{
LogHelper
.
Write
(
ex
,
"EduPushOrderProperty"
);
}
#
endregion
...
...
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