Skip to content

Commit

Permalink
Signed-off-by: Peterinor <tangyutianbulao@qq.com>
Browse files Browse the repository at this point in the history
  • Loading branch information
Peterinor committed Aug 25, 2013
1 parent 61234f7 commit 71d7951
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions 9227/avt7/Controllers/avt7Controller.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class avt7Controller : Controller
[HttpGet]
public string Index(string signature, string timestamp, string nonce, string echostr)
{
//Utities.Log("D:/weixinLog/sig_" + DateTime.Now.ToString("yyyy_MM_dd_hh_mm_ss") + ".txt", echostr);
//Utities.Log(appPath + "weixinLog/sig_" + DateTime.Now.ToString("yyyy_MM_dd_hh_mm_ss") + ".txt", echostr);
return echostr;
}

Expand All @@ -33,13 +33,14 @@ public string Index(string signature, string timestamp, string nonce, string ech
[ValidateInput(false)]
public string Index()
{
var appPath = Request.PhysicalApplicationPath;
try
{
Stream input = Request.InputStream;

XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(Request.InputStream);
Utities.Log("D:/weixinLog/msg_" + DateTime.Now.ToString("yyyy_MM_dd_hh_mm_ss") + ".txt", xmlDoc.InnerXml);
Utities.Log(appPath + "weixinLog/msg_" + DateTime.Now.ToString("yyyy_MM_dd_hh_mm_ss") + ".txt", xmlDoc.InnerXml);

TMessage MSG = new TMessage(xmlDoc);

Expand All @@ -57,7 +58,7 @@ public string Index()
}
catch (Exception e)
{
Utities.Log("D:/weixinLog/msg_Error.txt", e.Message);
Utities.Log(appPath + "weixinLog/msg_Error.txt", e.Message);
}
return "";
}
Expand Down
1 change: 1 addition & 0 deletions 9227/avt7/weixinLog/msg_2013_08_25_01_04_13.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<xml><ToUserName><![CDATA[gh_44942f13bc61]]></ToUserName><FromUserName><![CDATA[o3bikjo_2ieBwCw1PECJHu-0VyjA]]></FromUserName><CreateTime>1365749824</CreateTime><MsgType><![CDATA[link]]></MsgType><Title><![CDATA[公众平台官网链接]]></Title><Description><![CDATA[公众平台官网链接]]></Description><Url><![CDATA[url]]></Url><MsgId>5865850828597755958</MsgId></xml>

0 comments on commit 71d7951

Please sign in to comment.