Commit 35c8fd13 authored by 金凯强's avatar 金凯强 🎨

测试

parent 7afbef35
Pipeline #21119 passed with stage
in 23 seconds
......@@ -16,11 +16,11 @@ if __name__ == '__main__':
# res = requests.get('http://localhost:5000/connection/')
# print(res.json())
#
json_data = {}
# 设置项目链接
res = requests.post('http://localhost:5000/connection/', json=json_data)
print(res.json())
# json_data = {}
#
# # 设置项目链接
# res = requests.post('http://localhost:5000/connection/', json=json_data)
# print(res.json())
#
# # 测试项目数据库连接
# res = requests.get('http://localhost:5000/connection/jkq_test/HSGmtMEs/')
......@@ -75,3 +75,17 @@ if __name__ == '__main__':
# # 远程升级
# res = requests.get('http://localhost:5000/upgrade/remote/')
# print(json.dumps(res.json(), indent=4))
# headers = {
# "User_Agent": "M3/3.1.7 (iPhone; iOS 12.0; Scale/3.00)",
# "Cookie": "JSESSIONID=45D5167DDB2531A565911EE71EE690E3",
# "ltoken": "yWm6cy4IjV9"
# }
#
# data1 = {"x": "0", "ordinal": "0", "_index": 0, "y": "0", "sectionBeanId": "vReportQuotaSection", "width": "10",
# "entityId": "193929", "spaceType": "36", "spaceId": "3894977586903598529"}
#
# res = requests.post('http://kq.huansi.net:8080/mobile_portal/seeyon/rest/mobilePortal/projection?option.n_a_s=1',
# headers=headers, json=data1)
#
# print(json.dumps(res.json(), indent=4, ensure_ascii=False))
# print(res.text)
......@@ -8,6 +8,14 @@ from app.install.install_service import InstallService
@api('install')
class InstallAPI(ApiController):
@api('test/<int:s>')
def get_test(self, s):
import time
print(1)
time.sleep(int(s))
return 1
@api('runner')
def get_list(self):
'''
......
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