modify bug

pull/8/merge
injetlee 2018-06-16 18:41:57 +08:00
parent 31cd60b260
commit 4b8ade301e
3 changed files with 2 additions and 4 deletions

View File

@ -29,7 +29,6 @@ class Connect(object):
xml = req.stream.read() xml = req.stream.read()
msg = parse_message(xml) msg = parse_message(xml)
if msg.type == 'text': if msg.type == 'text':
print('hello')
reply = TextReply(content=msg.content, message=msg) reply = TextReply(content=msg.content, message=msg)
xml = reply.render() xml = reply.render()
resp.body = (xml) resp.body = (xml)

View File

@ -53,7 +53,6 @@ def get_params(img):
def access_api(img): def access_api(img):
print(img)
frame = cv2.imread(img) frame = cv2.imread(img)
nparry_encode = cv2.imencode('.jpg', frame)[1] nparry_encode = cv2.imencode('.jpg', frame)[1]
data_encode = np.array(nparry_encode) data_encode = np.array(nparry_encode)

View File

@ -5,8 +5,8 @@ import time
import os import os
token = '' token = ''
app_id = 'wxfc6adcdd7593a712' app_id = '微信配置界面的AppID'
secret = '429d85da0244792be19e0deb29615128' secret = '配置界面的开发者密码AppSecret'
def img_download(url, name): def img_download(url, name):