Commit b3f5973d authored by wanliofficial's avatar wanliofficial

修复后端一处BUG

parent 620aa030
...@@ -145,7 +145,10 @@ class AppsManager(object): ...@@ -145,7 +145,10 @@ class AppsManager(object):
app_files = [] app_files = []
for sf in source_files: for sf in source_files:
target_file = sf.path
if not os.path.exists(sf.path):
target_file = os.sep.join([config.get("UPLOAD_PATH"), sf.path]) target_file = os.sep.join([config.get("UPLOAD_PATH"), sf.path])
filename = os.path.basename(target_file) filename = os.path.basename(target_file)
name, suffix = os.path.splitext(filename) name, suffix = os.path.splitext(filename)
name = re.sub(r"_\d{14}$", "", name) name = re.sub(r"_\d{14}$", "", name)
......
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