Commit 2f3bf159 by sikang

bug fix

parent 3962c081
......@@ -327,6 +327,7 @@ class Function:
# 移除
shutil.copy("%s/logo.png" % img_path, "%s/cache/logo.png" % target)
try:
os.remove("%s/cache/api_mapping" % target)
shutil.copy("%s/top.png" % img_path, "%s/cache/top.png" % target)
shutil.copy("%s/script/api_mapping" %
config['root'], "%s/cache/api_mapping" % target)
......@@ -339,7 +340,7 @@ class Function:
# 还原
shutil.copy("%s/cache/logo.png" % target, "%s/logo.png" % img_path)
try:
os.remove("%s/script/api_mapping")
os.remove("%s/script/api_mapping"% config['root'])
shutil.copy("%s/cache/top.png" % target, "%s/top.png" % img_path)
shutil.copy("%s/cache/api_mapping" %
target, "%s/script/api_mapping" % config['root'])
......
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