Commit 746f44e3 authored by libin's avatar libin

上传包的修改

parent dab465cf
...@@ -73,10 +73,10 @@ public class FileUploadServiceImpl implements FileUploadService { ...@@ -73,10 +73,10 @@ public class FileUploadServiceImpl implements FileUploadService {
Runtime runtime = Runtime.getRuntime(); Runtime runtime = Runtime.getRuntime();
log.info("执行删除xxfc.apk"); log.info("执行删除xxfc.apk");
//删除包 //删除包
runtime.exec("rm -rf "+uploadPath+APK_NAME); runtime.exec("rm -rf "+uploadPath+"/"+APK_NAME);
log.info("执行复制上传包为xxfc.apk"); log.info("执行复制上传包为xxfc.apk");
//复制包 //复制包
runtime.exec("cp -f "+uploadPath+"/"+filename+" "+uploadPath+APK_NAME); runtime.exec("cp -f "+uploadPath+"/"+filename+" "+uploadPath+"/"+APK_NAME);
} }
return ObjectRestResponse.succ(path); return ObjectRestResponse.succ(path);
}else { }else {
......
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