From 8b43d4e1190fc9e2261be0579e53cc6c2987f946 Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期四, 27 十一月 2025 19:37:56 +0800
Subject: [PATCH] 2025年11月27日19:37:50 备份代码
---
app/src/main/java/com/hdl/photovoltaic/other/HdlFileLogic.java | 26 +++++++++++++++++++++-----
1 files changed, 21 insertions(+), 5 deletions(-)
diff --git a/app/src/main/java/com/hdl/photovoltaic/other/HdlFileLogic.java b/app/src/main/java/com/hdl/photovoltaic/other/HdlFileLogic.java
index 5093d22..e2d525d 100644
--- a/app/src/main/java/com/hdl/photovoltaic/other/HdlFileLogic.java
+++ b/app/src/main/java/com/hdl/photovoltaic/other/HdlFileLogic.java
@@ -10,6 +10,7 @@
import com.hdl.photovoltaic.HDLApp;
import com.hdl.photovoltaic.config.ConstantManage;
import com.hdl.photovoltaic.config.UserConfigManage;
+import com.hdl.photovoltaic.enums.Languages;
import com.hdl.photovoltaic.utils.LocalManageUtil;
import org.apache.commons.io.FileUtils;
@@ -107,7 +108,7 @@
* @param deviceModel 璁惧鍨嬪彿
*/
public String getHdlESLocalJsonZhRootPath(String deviceModel) {
- return getAPPInternalStoreFilesPath() + "/hdlESLocalJson/" + LocalManageUtil.zh + "/" + deviceModel;
+ return getAPPInternalStoreFilesPath() + "/hdlESLocalJson/" + Languages.zh + "/" + deviceModel;
}
/**
@@ -116,7 +117,7 @@
* @param deviceModel 璁惧鍨嬪彿
*/
public String getHdlESLocalJsonEnRootPath(String deviceModel) {
- return getAPPInternalStoreFilesPath() + "/hdlESLocalJson/" + LocalManageUtil.en + "/" + deviceModel;
+ return getAPPInternalStoreFilesPath() + "/hdlESLocalJson/" + Languages.en + "/" + deviceModel;
}
@@ -142,7 +143,7 @@
if (!fileName.endsWith(".json")) {
fileName += ".json";
}
- return getAPPInternalStoreFilesPath() + "/hdlESLocalJson/" + LocalManageUtil.zh + "/" + deviceModel + "/" + fileName;
+ return getAPPInternalStoreFilesPath() + "/hdlESLocalJson/" + Languages.zh + "/" + deviceModel + "/" + fileName;
}
/**
@@ -152,7 +153,7 @@
if (!fileName.endsWith(".json")) {
fileName += ".json";
}
- return getAPPInternalStoreFilesPath() + "/hdlESLocalJson/" + LocalManageUtil.en + "/" + deviceModel + "/" + fileName;
+ return getAPPInternalStoreFilesPath() + "/hdlESLocalJson/" + Languages.en + "/" + deviceModel + "/" + fileName;
}
@@ -212,8 +213,16 @@
this.createFileDir(this.getHdlESLocalJsonZhRootPath(HdlESLocalJsonLogic.DeviceModel.OFF_INV_BATTERY));//绂荤綉-閫嗗彉鍣�-鐢垫睜鍖�
//绂荤嚎-3.6kw閫嗗彉鍣�
- this.createFileDir(this.getHdlESLocalJsonZhRootPath(HdlESLocalJsonLogic.DeviceModel.OFF_INV_3));//绂荤嚎-閫嗗彉鍣�
+ this.createFileDir(this.getHdlESLocalJsonZhRootPath(HdlESLocalJsonLogic.DeviceModel.OFF_INV_3));//绂荤嚎-閫嗗彉鍣�3.6kw
this.createFileDir(this.getHdlESLocalJsonZhRootPath(HdlESLocalJsonLogic.DeviceModel.OFF_INV_BMS_3));//绂荤綉-閫嗗彉鍣�-铏氭嫙BMS
+ //鐢垫睜鍖呰浆鎹㈠櫒
+ this.createFileDir(this.getHdlESLocalJsonZhRootPath(HdlESLocalJsonLogic.DeviceModel.INV_KE_GLE_B5K_BATTERY));//鐢垫睜鍖呰浆鎹㈠櫒
+
+ //绂荤嚎-7.6kw閫嗗彉鍣�
+ this.createFileDir(this.getHdlESLocalJsonZhRootPath(HdlESLocalJsonLogic.DeviceModel.OFF_INV_7));//绂荤嚎-閫嗗彉鍣�7.6kw
+ this.createFileDir(this.getHdlESLocalJsonZhRootPath(HdlESLocalJsonLogic.DeviceModel.OFF_INV_BMS_7));//绂荤綉-閫嗗彉鍣�-BMS
+ this.createFileDir(this.getHdlESLocalJsonZhRootPath(HdlESLocalJsonLogic.DeviceModel.INV_KE_GLE_B15K_BATTERY));//绂荤綉-閫嗗彉鍣�-鐢垫睜鍖�15k
+
//鑻辨枃鏂囦欢澶�
@@ -230,6 +239,13 @@
this.createFileDir(this.getHdlESLocalJsonEnRootPath(HdlESLocalJsonLogic.DeviceModel.OFF_INV_3));//绂荤嚎-閫嗗彉鍣�
this.createFileDir(this.getHdlESLocalJsonEnRootPath(HdlESLocalJsonLogic.DeviceModel.OFF_INV_BMS_3));//绂荤綉-閫嗗彉鍣�-铏氭嫙BMS
+ //鐢垫睜鍖呰浆鎹㈠櫒
+ this.createFileDir(this.getHdlESLocalJsonEnRootPath(HdlESLocalJsonLogic.DeviceModel.INV_KE_GLE_B5K_BATTERY));//鐢垫睜鍖呰浆鎹㈠櫒
+
+ //绂荤嚎-7.6kw閫嗗彉鍣�
+ this.createFileDir(this.getHdlESLocalJsonEnRootPath(HdlESLocalJsonLogic.DeviceModel.OFF_INV_7));//绂荤嚎-閫嗗彉鍣�7.6kw
+ this.createFileDir(this.getHdlESLocalJsonEnRootPath(HdlESLocalJsonLogic.DeviceModel.OFF_INV_BMS_7));//绂荤綉-閫嗗彉鍣�-BMS
+ this.createFileDir(this.getHdlESLocalJsonEnRootPath(HdlESLocalJsonLogic.DeviceModel.INV_KE_GLE_B15K_BATTERY));//绂荤綉-閫嗗彉鍣�-鐢垫睜鍖�15k
}
/**
--
Gitblit v1.8.0