|
@@ -1,5 +1,9 @@
|
|
|
package com.fdkankan.common.constant;
|
|
|
|
|
|
+import org.springframework.beans.factory.annotation.Value;
|
|
|
+import org.springframework.stereotype.Component;
|
|
|
+
|
|
|
+@Component
|
|
|
public class ConstantFilePath {
|
|
|
public static final String BASE_PATH = "/mnt/4Dkankan";
|
|
|
//论坛上传图片后,服务器存放的地址
|
|
@@ -32,11 +36,16 @@ public class ConstantFilePath {
|
|
|
//大场景
|
|
|
public static final String CREATE_BIG_SCENE_PATH = PREFIX + "/photo_data/bigscene/";
|
|
|
//生成模型的路径
|
|
|
- public static final String BUILD_MODEL_PATH = "/mnt/data/";
|
|
|
+ public static String BUILD_MODEL_PATH;
|
|
|
|
|
|
//支付二维码图片存放路径
|
|
|
public static final String ALI_QRCODE_FOLDER = "/mnt/4Dkankan/alicode/";
|
|
|
public static final String WEIXIN_QRCODE_FOLDER = "/mnt/4Dkankan/weixincode/";
|
|
|
|
|
|
public static final String OSS_PREFIX = "home/";
|
|
|
+
|
|
|
+ @Value("${scene.buildModelPath:/home/ubuntu/data/}")
|
|
|
+ public void setBuildModelPath(String buildModelPath){
|
|
|
+ ConstantFilePath.BUILD_MODEL_PATH = buildModelPath;
|
|
|
+ }
|
|
|
}
|