Commit b9a07026 authored by Wallen姚文辉's avatar Wallen姚文辉

修改部分bug

parent b27d49f6
......@@ -203,7 +203,7 @@ def uplooadcase():
def a(suiteName,suiteId,info,new,type):
for each in info:
oldinfo,newtype=deepcopy(new),type
if not ((each["title"])=="Map" or (each["title"])=="测试用例" or (each["title"])=="sheet" or (each["title"])=="思维导图" or (each["title"])=="逻辑图" or (each["title"])=="括号图"):
if not ((each["title"])=="Map" or (each["title"])=="测试用例" or (each["title"])=="sheet" or (each["title"])=="思维导图" or (each["title"])=="逻辑图" or (each["title"])=="括号图" "画布" in (each["title"])):
if not suiteName:
suiteName = each.get("title")
params={"tcIssueId":globalcaseId,"projectId":projectId,"sourcePage":"TEST_SUITE_TEST_CASE_PAGE","decorator":"dialog","inline":True}
......
......@@ -24,9 +24,17 @@ def token():
break
if next_:
pass
elif token is None or session.get("id") is None:
elif token is None:
db.session.close()
return jsonify({"code": 401, "message": "登陆已过期"}),401
elif not session.get("id"):
m=db.session.query(User).filter_by(token=token).first()
db.session.close()
if m:
session["id"]=m.id
session['token']=token
else:
return jsonify({"code": 401, "message": "登陆已过期"}),401
elif db.session.query(User.token).filter_by(id=session.get("id")).first()[0] == token:
session['token']=token
db.session.close()
......
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