Commit d3e4a593 authored by wanli's avatar wanli

🌈 style: 修改源码打包最终路径

parent 97cfe161
......@@ -425,7 +425,7 @@ def parse_header_files():
f.write(json.dumps(result))
result_list.append(result)
target_dir = Path(config.get("UPLOAD_PATH")).joinpath(config.get("UPLOAD_DIR")).resolve().as_posix()
target_dir = Path(config.get("UPLOAD_PATH")).joinpath(config.get("TEMP_DIR")).resolve().as_posix()
if len(result_list) > 0:
path_list = generate_from_list(result_list)
target_file = compress_files(path_list, target_dir)
......@@ -453,7 +453,7 @@ def process_parse():
if len(params) <= 0:
return response_result(ResponseCode.PARAMETER_NULL)
target_dir = Path(config.get("UPLOAD_PATH")).joinpath(config.get("UPLOAD_DIR")).joinpath(params["dir"])
target_dir = Path(config.get("UPLOAD_PATH")).joinpath(config.get("TEMP_DIR")).joinpath(params["dir"])
if not target_dir.exists():
return response_result(ResponseCode.INVAILD_REQUEST, msg="target directory not exists")
......
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