Skip to content

Commit

Permalink
modify bug
Browse files Browse the repository at this point in the history
  • Loading branch information
injetlee committed Jun 16, 2018
1 parent 31cd60b commit 4b8ade3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion wechat/connect.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ def on_post(self, req, resp):
xml = req.stream.read()
msg = parse_message(xml)
if msg.type == 'text':
print('hello')
reply = TextReply(content=msg.content, message=msg)
xml = reply.render()
resp.body = (xml)
Expand Down
1 change: 0 additions & 1 deletion wechat/face_id.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ def get_params(img):


def access_api(img):
print(img)
frame = cv2.imread(img)
nparry_encode = cv2.imencode('.jpg', frame)[1]
data_encode = np.array(nparry_encode)
Expand Down
4 changes: 2 additions & 2 deletions wechat/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
import os

token = ''
app_id = 'wxfc6adcdd7593a712'
secret = '429d85da0244792be19e0deb29615128'
app_id = '微信配置界面的AppID'
secret = '配置界面的开发者密码AppSecret'


def img_download(url, name):
Expand Down

0 comments on commit 4b8ade3

Please sign in to comment.