Browse Source

资源导入 路径

XMTT 7 years ago
parent
commit
cb989dcf16

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

102
                            if (bytes != null) {
102
                            if (bytes != null) {
103
                                String imgId = StringUtil.buildUUID();
103
                                String imgId = StringUtil.buildUUID();
104
                                rt.setImg("importRes/" + imgId + ".jpg");
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
                                try {
109
                                try {
110
                                    fos.write(bs);
110
                                    fos.write(bs);
111
                                    fos.flush();
111
                                    fos.flush();