mirror of https://github.com/injetlee/Python.git
modify bug
parent
31cd60b260
commit
4b8ade301e
|
@ -29,7 +29,6 @@ class Connect(object):
|
|||
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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -5,8 +5,8 @@ import time
|
|||
import os
|
||||
|
||||
token = ''
|
||||
app_id = 'wxfc6adcdd7593a712'
|
||||
secret = '429d85da0244792be19e0deb29615128'
|
||||
app_id = '微信配置界面的AppID'
|
||||
secret = '配置界面的开发者密码AppSecret'
|
||||
|
||||
|
||||
def img_download(url, name):
|
||||
|
|
Loading…
Reference in New Issue