Commit a67efff5 authored by 吴春's avatar 吴春

1

parent 3c407a8f
...@@ -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)
......
...@@ -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);
......
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