Commit 2df09a24 by sikang

update

parent 3a327410
......@@ -323,24 +323,24 @@ class Function:
os.makedirs(target+"/cache")
# 移除
shutil.copy("%s/logo.png" % img_path, "%s/cache/logo.png" % target)
shutil.copy("%s/top.png" % img_path, "%s/cache/top.png" % target)
try:
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)
except:
print("no api_mapping")
print("no api_mapping or img")
new_config = self.load_properties("../../gradle.properties")
os.system("cd %s\ngit reset --hard origin/%s" % (config['root'],config['git_branch']))
# 还原
shutil.copy("%s/cache/logo.png" % target, "%s/logo.png" % img_path)
shutil.copy("%s/cache/top.png" % target, "%s/top.png" % img_path)
try:
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'])
except:
print("no api_mapping")
print("no api_mapping or img")
new_config['properties'] = config['properties']
self.update_gateway(new_config)
......
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