Commit 2e842388 by zhaihuitao

add install enevt

parent 0e96f097
......@@ -7,19 +7,20 @@
"""
import requests
import json
from config.envcfg import prod, prod_params
from config.envcfg import prod
from config.prod.params import params_install
headers = {'Content-Type': 'application/json'}
class allEvent:
# 激活
def installUpload(self):
try:
p = requests.post(url=prod["events"]["url"] + 'install', data=json.dumps(params_install), headers=headers, timeout=5)
print("开始执行===================")
print("激活:" + p.text)
# print("设备id:" + i)
print(p.url)
except Exception as err:
print(err)
a = allEvent()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment