Commit 4e4ed835 authored by libin's avatar libin

上传包的修改

parent 546f411e
......@@ -63,6 +63,7 @@ public class FileUploadServiceImpl implements FileUploadService {
String path=readZipFile(packFilePath);
if (StringUtils.isNotBlank(path)){
String filename = path;
path=xx_url+"/"+prefix+"/"+path;
log.info("文件名:{}",path);
if (path.contains(".apk")){
......@@ -72,7 +73,7 @@ public class FileUploadServiceImpl implements FileUploadService {
runtime.exec("rm -rf "+uploadPath+"/xxfc.apk");
log.info("执行复制上传包为xxfc.apk");
//复制包
runtime.exec("cp -f "+uploadPath+path+" "+uploadPath+"/xxfc.apk");
runtime.exec("cp -f "+uploadPath+"/"+filename+" "+uploadPath+"/xxfc.apk");
}
return ObjectRestResponse.succ(path);
......
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