Skip to content

Commit

Permalink
make it better
Browse files Browse the repository at this point in the history
  • Loading branch information
JaminJiang committed Jun 18, 2016
1 parent 4ed79e2 commit 7649ee2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions weixinInterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import os
import urllib2,json
from lxml import etree
import model

class WeixinInterface:

Expand Down
2 changes: 1 addition & 1 deletion weixinInterface.py~
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class WeixinInterface:
def POST(self):
str_xml = web.data() #获得post来的数据
xml = etree.fromstring(str_xml)#进行XML解析
msgType=xml.find("MsgType").text
mstype=xml.find("MsgType").text
fromUser=xml.find("FromUserName").text
toUser=xml.find("ToUserName").text
if mstype == "event":
Expand Down

0 comments on commit 7649ee2

Please sign in to comment.