Commit 4b5713de authored by Wallen姚文辉's avatar Wallen姚文辉

一些微调

parent c553d9fb
...@@ -110,6 +110,7 @@ def relevancycase(id,project,headers): ...@@ -110,6 +110,7 @@ def relevancycase(id,project,headers):
requests.request("post",jiraAddress+"/rest/synapse/latest/requirementTestCase/addTestCase",headers=headers,json={"currentReqkey":k,"testCaseKeys":v,"history":"yes"}) requests.request("post",jiraAddress+"/rest/synapse/latest/requirementTestCase/addTestCase",headers=headers,json={"currentReqkey":k,"testCaseKeys":v,"history":"yes"})
def run(id,url,project): def run(id,url,project):
id=int(id)
headers={ headers={
"Authorization":"Basic "+base64.b64encode(("betty.zww:AAAaaa111").encode('utf-8')).decode(), "Authorization":"Basic "+base64.b64encode(("betty.zww:AAAaaa111").encode('utf-8')).decode(),
"accept":"application/json,text/javascript,*/*;q=0.01" "accept":"application/json,text/javascript,*/*;q=0.01"
...@@ -129,5 +130,6 @@ def uploadcase(): ...@@ -129,5 +130,6 @@ def uploadcase():
@notoken.route('/upstatus/<id_>', methods=["GET"]) @notoken.route('/upstatus/<id_>', methods=["GET"])
def upstatus(id_): def upstatus(id_):
id_=int(id_)
global runinfo global runinfo
return jsonify({"code": 200, "message": "请求成功","status":runinfo.get(id_)}),200 return jsonify({"code": 200, "message": "请求成功","status":runinfo.get(id_)}),200
\ 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