Commit 2804b713 authored by 黄奎's avatar 黄奎
parents 24c964e4 a67efff5
......@@ -241,7 +241,7 @@ namespace Mall.Common.Pay.WeChatPat
{
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);
if (r != 0)
{
......@@ -307,10 +307,10 @@ namespace Mall.Common.Pay.WeChatPat
[Obsolete]
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 str = string.Join("", vs);
//var tmpStr = FormsAuthentication.HashPasswordForStoringInConfigFile(str, "SHA1");
//var tmpStr = System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(str, "SHA1");
//tmpStr = tmpStr.ToLower();
//Plugin.LogHelper.Write("tmpStr:" + tmpStr + ",_token:" + _token);
//if (tmpStr == null)
......
......@@ -632,7 +632,7 @@ namespace Mall.WebApi.Controllers.AppletWeChat
}
return echostr ?? "echostr is null";
}
// var str = new StreamReader(HttpContext.Request.);
var str = new StreamReader(request.Body);
string postStr = str.ReadToEnd();
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