Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
xuhanyu committed Mar 5, 2023
1 parent fe7fa09 commit 60ebcac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def wechat():
# 获取微信服务器post过来的xml数据
xml = request.data
# 把xml格式的数据进行处理,转换成字典进行取值
print('测试是否try的问题')
print('xml:',xml)
try:
req = xmltodict.parse(xml)['xml'] # 云端调试空内容报错解决:no element found
print('try:',req)
Expand Down

0 comments on commit 60ebcac

Please sign in to comment.