| | |
| | | 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; |
| | |
| | | * @param deviceModel 设备型号 |
| | | */ |
| | | public String getHdlESLocalJsonZhRootPath(String deviceModel) { |
| | | return getAPPInternalStoreFilesPath() + "/hdlESLocalJson/" + LocalManageUtil.zh + "/" + deviceModel; |
| | | return getAPPInternalStoreFilesPath() + "/hdlESLocalJson/" + Languages.zh + "/" + deviceModel; |
| | | } |
| | | |
| | | /** |
| | |
| | | * @param deviceModel 设备型号 |
| | | */ |
| | | public String getHdlESLocalJsonEnRootPath(String deviceModel) { |
| | | return getAPPInternalStoreFilesPath() + "/hdlESLocalJson/" + LocalManageUtil.en + "/" + deviceModel; |
| | | return getAPPInternalStoreFilesPath() + "/hdlESLocalJson/" + Languages.en + "/" + deviceModel; |
| | | } |
| | | |
| | | |
| | |
| | | if (!fileName.endsWith(".json")) { |
| | | fileName += ".json"; |
| | | } |
| | | return getAPPInternalStoreFilesPath() + "/hdlESLocalJson/" + LocalManageUtil.zh + "/" + deviceModel + "/" + fileName; |
| | | return getAPPInternalStoreFilesPath() + "/hdlESLocalJson/" + Languages.zh + "/" + deviceModel + "/" + fileName; |
| | | } |
| | | |
| | | /** |
| | |
| | | if (!fileName.endsWith(".json")) { |
| | | fileName += ".json"; |
| | | } |
| | | return getAPPInternalStoreFilesPath() + "/hdlESLocalJson/" + LocalManageUtil.en + "/" + deviceModel + "/" + fileName; |
| | | return getAPPInternalStoreFilesPath() + "/hdlESLocalJson/" + Languages.en + "/" + deviceModel + "/" + fileName; |
| | | } |
| | | |
| | | |
| | |
| | | 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 |
| | | |
| | | |
| | | |
| | | //英文文件夹 |
| | |
| | | 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 |
| | | } |
| | | |
| | | /** |