qinglong_auto_tools/Script/text.py
spiritysdx e58978c0f3 init
2022-03-08 17:52:00 +08:00

11 lines
320 B
Python

import json
# def get_version():
# url = 'http://127.0.0.1:{0}/api/system'.format()
# # res = s.get(url)
# # version = str(json.loads(res.text)['data']['version'])
# # logger.info("青龙面板版本: " + version)
# if version > '2.10.13':
# return 1
# else:
# return 0