mqtt
This commit is contained in:
parent
7bcc174faf
commit
09350f0357
2
tool.py
2
tool.py
|
@ -51,4 +51,4 @@ def get_record(msg, client):
|
||||||
client.publish('error', payload='没有该文件', qos=0)
|
client.publish('error', payload='没有该文件', qos=0)
|
||||||
return
|
return
|
||||||
files = {"file": open(file_name_, 'rb'), "Content-Type": "application/octet-stream"}
|
files = {"file": open(file_name_, 'rb'), "Content-Type": "application/octet-stream"}
|
||||||
requests.post("http://127.0.0.1:8000/testfile", files=files)
|
requests.post("https://shop.lihaink.cn/api/upload/image/field", files=files)
|
||||||
|
|
Loading…
Reference in New Issue