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
2804b713
Commit
2804b713
authored
Dec 13, 2024
by
黄奎
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/Kui2/mall.oytour.com
parents
24c964e4
a67efff5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
WXBizMsgCrypt.cs
Mall.Common/Pay/WeChatPat/Msg/WXBizMsgCrypt.cs
+3
-3
WeChatNotifyController.cs
...WebApi/Controllers/AppletWeChat/WeChatNotifyController.cs
+1
-1
No files found.
Mall.Common/Pay/WeChatPat/Msg/WXBizMsgCrypt.cs
View file @
2804b713
...
@@ -241,7 +241,7 @@ namespace Mall.Common.Pay.WeChatPat
...
@@ -241,7 +241,7 @@ namespace Mall.Common.Pay.WeChatPat
{
{
if
(
encrypt_type
.
ToLower
()
==
"aes"
.
ToLower
())
//加密模式需要先解密
if
(
encrypt_type
.
ToLower
()
==
"aes"
.
ToLower
())
//加密模式需要先解密
{
{
var
ret
=
new
WXBizMsgCrypt
(
"f87f2b2a8c474c06908b5c937068b506"
,
"
9FgR0wMXxe6wXBB5hwgpn2mZM6sQMi3E3Vk5sxrXEAL
"
,
"wxaeb077c07ed6f30d"
);
var
ret
=
new
WXBizMsgCrypt
(
"f87f2b2a8c474c06908b5c937068b506"
,
"
4slULC9wukM8dKJjjM9TdTFfbTFXQNbSjQVbCEbkpPT
"
,
"wxaeb077c07ed6f30d"
);
int
r
=
ret
.
DecryptMsg
(
msg_signature
,
timestamp
,
nonce
,
postStr
,
ref
postStr
);
int
r
=
ret
.
DecryptMsg
(
msg_signature
,
timestamp
,
nonce
,
postStr
,
ref
postStr
);
if
(
r
!=
0
)
if
(
r
!=
0
)
{
{
...
@@ -307,10 +307,10 @@ namespace Mall.Common.Pay.WeChatPat
...
@@ -307,10 +307,10 @@ namespace Mall.Common.Pay.WeChatPat
[
Obsolete
]
[
Obsolete
]
public
static
bool
CheckSignature
(
string
signature
,
string
timestamp
,
string
nonce
,
string
_token
)
public
static
bool
CheckSignature
(
string
signature
,
string
timestamp
,
string
nonce
,
string
_token
)
{
{
return
false
;
return
false
;
//var vs = new[] { timestamp, nonce, _token }.OrderBy(s => s);
//var vs = new[] { timestamp, nonce, _token }.OrderBy(s => s);
//var str = string.Join("", vs);
//var str = string.Join("", vs);
//var tmpStr = FormsAuthentication.HashPasswordForStoringInConfigFile(str, "SHA1");
//var tmpStr =
System.Web.Security.
FormsAuthentication.HashPasswordForStoringInConfigFile(str, "SHA1");
//tmpStr = tmpStr.ToLower();
//tmpStr = tmpStr.ToLower();
//Plugin.LogHelper.Write("tmpStr:" + tmpStr + ",_token:" + _token);
//Plugin.LogHelper.Write("tmpStr:" + tmpStr + ",_token:" + _token);
//if (tmpStr == null)
//if (tmpStr == null)
...
...
Mall.WebApi/Controllers/AppletWeChat/WeChatNotifyController.cs
View file @
2804b713
...
@@ -632,7 +632,7 @@ namespace Mall.WebApi.Controllers.AppletWeChat
...
@@ -632,7 +632,7 @@ namespace Mall.WebApi.Controllers.AppletWeChat
}
}
return
echostr
??
"echostr is null"
;
return
echostr
??
"echostr is null"
;
}
}
// var str = new StreamReader(HttpContext.Request.);
var
str
=
new
StreamReader
(
request
.
Body
);
var
str
=
new
StreamReader
(
request
.
Body
);
string
postStr
=
str
.
ReadToEnd
();
string
postStr
=
str
.
ReadToEnd
();
LogHelper
.
WriteInfo
(
"我是返回信息:"
+
postStr
);
LogHelper
.
WriteInfo
(
"我是返回信息:"
+
postStr
);
...
...
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