浏览代码

资源导入 路径

XMTT 7 年之前
父节点
当前提交
cb989dcf16
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/main/java/com/ekexiu/console/system/service/ResourceTmpService.java

+ 4 - 4
src/main/java/com/ekexiu/console/system/service/ResourceTmpService.java

@ -102,10 +102,10 @@ public class ResourceTmpService extends Upload {
102 102
                            if (bytes != null) {
103 103
                                String imgId = StringUtil.buildUUID();
104 104
                                rt.setImg("importRes/" + imgId + ".jpg");
105
                                FileOutputStream fos = new FileOutputStream("D:/tmp/data/image/" + imgId + ".jpg");
106
                                FileOutputStream fos2 = new FileOutputStream("D:/tmp/data/image/" + imgId + "_s.jpg");
107
                                //FileOutputStream fos = new FileOutputStream("/kexiu/webdata1/data/resource/importRes/"+imgId+".jpg");
108
                                //FileOutputStream fos2 = new FileOutputStream("/kexiu/webdata1/data/resource/importRes/"+imgId+"_s.jpg");
105
                                //FileOutputStream fos = new FileOutputStream("D:/tmp/data/image/" + imgId + ".jpg");
106
                                //FileOutputStream fos2 = new FileOutputStream("D:/tmp/data/image/" + imgId + "_s.jpg");
107
                                FileOutputStream fos = new FileOutputStream("/kexiu/webdata/data/resource/importRes/"+imgId+".jpg");
108
                                FileOutputStream fos2 = new FileOutputStream("/kexiu/webdata/data/resource/importRes/"+imgId+"_s.jpg");
109 109
                                try {
110 110
                                    fos.write(bs);
111 111
                                    fos.flush();