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
b71e52c3
Commit
b71e52c3
authored
Nov 08, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
1748f3ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
MessageController.cs
Mall.WebApi/Controllers/Adapay/MessageController.cs
+1
-7
No files found.
Mall.WebApi/Controllers/Adapay/MessageController.cs
View file @
b71e52c3
using
Mall.CacheManager.AppletWeChat
;
using
Mall.CacheManager.User
;
using
Mall.Common.API
;
using
Mall.Common.Plugin
;
using
Mall.Module.User
;
using
Mall.WebApi.Filter
;
...
...
@@ -11,8 +10,6 @@ using Newtonsoft.Json.Linq;
using
System
;
using
System.Collections.Generic
;
using
System.IO
;
using
System.Linq
;
using
System.Net.Http
;
using
System.Security.Cryptography
;
using
System.Text
;
using
System.Threading.Tasks
;
...
...
@@ -97,14 +94,12 @@ namespace Mall.WebApi.Controllers.Adapay
string
openId
=
jobj
.
GetStringValue
(
"FromUserName"
);
string
MsgType
=
jobj
.
GetStringValue
(
"MsgType"
);
string
Content
=
jobj
.
GetStringValue
(
"Content"
);
Common
.
Plugin
.
LogHelper
.
Write
(
$"请求参数:: openId:
{
openId
}
MsgType:
{
MsgType
}
Content:
{
Content
}
"
);
Common
.
Plugin
.
LogHelper
.
Write
Info
(
$"请求参数:: openId:
{
openId
}
MsgType:
{
MsgType
}
Content:
{
Content
}
"
);
if
(
MsgType
==
"text"
&&
!
string
.
IsNullOrEmpty
(
openId
)
&&
!
string
.
IsNullOrEmpty
(
Content
)
&&
Content
.
Contains
(
"支付"
))
{
Task
.
Run
(()
=>
{
Common
.
Plugin
.
LogHelper
.
WriteInfo
(
$"消息_推送客服消息:
{
openId
}
"
);
string
payInfoKey
=
CacheManager
.
DataStatistic
.
DataConstant
.
DATA_AliPay_Order
+
openId
;
Common
.
Plugin
.
LogHelper
.
WriteInfo
(
$"消息_推送客服消息:获取缓存"
);
var
zfbPayList
=
UserReidsCache
.
GetOrderPay
(
payInfoKey
);
if
(
zfbPayList
!=
null
&&
zfbPayList
.
Count
>
0
)
{
...
...
@@ -117,7 +112,6 @@ namespace Mall.WebApi.Controllers.Adapay
pushUrlList
.
Add
(
item
.
PayInfo
);
}
}
Common
.
Plugin
.
LogHelper
.
WriteInfo
(
$"消息_删除缓存"
);
//删除缓存
UserReidsCache
.
DeleteMiniAppUsetOpenId
(
payInfoKey
);
SendMessage
(
openId
,
pushUrlList
);
...
...
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