lyhzzz 3 éve
szülő
commit
66cb8cac13

+ 1 - 1
src/main/java/com/fdkankan/fusion/common/util/OBJToGLBUtil.java

@@ -122,7 +122,7 @@ public class OBJToGLBUtil {
         cmd =  cmd.replace("@inPath",mntPath);
         cmd = cmd.replace("@outPath",mntPathEmt);
         ShellUtil.execCmd(cmd);
-        String cloudJs = mntPathEmt +"/"+ "cloud.js";
+        String cloudJs = mntPathEmt +"/webcloud/"+ "cloud.js";
         JSONObject jsonObject = ShellUtil.fixCloud(cloudJs);
         FileWriterUtil.writerJson(mntPathEmt,"cloud.js",jsonObject.toJSONString());
         return file;

+ 2 - 2
src/main/java/com/fdkankan/fusion/common/util/UploadToOssUtil.java

@@ -91,14 +91,14 @@ public class UploadToOssUtil {
 	public  void uploadOss(String filePath, String key1){
 		OSSClient ossClient = new OSSClient(point, key, secrey);
 		try {
-			System.out.println("oss-path:"+key1);
+			log.info("upload-to-oss:file-path:{},oss-path:{}",filePath,key1);
 			File file = new File(filePath);
 			if (!file.exists()) {
+				log.info("upload-to-oss:file-path:{},oss-path:{},filePath不存在!",filePath,key1);
 				return;
 			}
 			ObjectMetadata metadata = new ObjectMetadata();
 			ossClient.putObject(bucket, key1, new File(filePath), metadata);
-
 		} catch (Exception e) {
 			e.printStackTrace();
 		} finally {