Commit 54535445 authored by libin's avatar libin

fix

parent f54558fb
package com.xxfc.platform.universal.service; package com.xxfc.platform.universal.service;
import com.github.wxiaoqi.security.common.msg.ObjectRestResponse;
import com.github.wxiaoqi.security.common.util.process.SystemConfig; import com.github.wxiaoqi.security.common.util.process.SystemConfig;
import com.xxfc.platform.universal.constant.RedisKey; import com.xxfc.platform.universal.constant.RedisKey;
import com.xxfc.platform.universal.utils.ImgBase64Util; import com.xxfc.platform.universal.utils.ImgBase64Util;
...@@ -56,7 +55,7 @@ public class UploadService { ...@@ -56,7 +55,7 @@ public class UploadService {
//文件存放路径 //文件存放路径
String filePath = baseUploadPath + realFileRelPath; String filePath = baseUploadPath + realFileRelPath;
//将文件写入指定位置 //将文件写入指定位置
// FileUtils.copyInputStreamToFile(file.getInputStream(), new File(filePath)); FileUtils.copyInputStreamToFile(file.getInputStream(), new File(filePath));
realFileRelPath=xx_url+SystemConfig.XXMP_URL+realFileRelPath; realFileRelPath=xx_url+SystemConfig.XXMP_URL+realFileRelPath;
return realFileRelPath; return realFileRelPath;
} }
...@@ -84,7 +83,7 @@ public class UploadService { ...@@ -84,7 +83,7 @@ public class UploadService {
file.mkdirs(); file.mkdirs();
} }
String str="/" + no + ".jpg"; String str="/" + no + ".jpg";
realFileRelPath = realFileRelPath+str; realFileRelPath = realFileRelPath+str;
filePath=filePath +str; filePath=filePath +str;
//将文件写入指定位置 //将文件写入指定位置
......
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