Commit 9ea00ec6 authored by 梁光意's avatar 梁光意

修改配置信息解密异常的问题

parent e3ee9fe7
...@@ -369,7 +369,10 @@ public class InstrumentPanelConfigServiceImpl extends ServiceImpl<InstrumentPane ...@@ -369,7 +369,10 @@ public class InstrumentPanelConfigServiceImpl extends ServiceImpl<InstrumentPane
BeanUtils.copyProperties(config, vo); BeanUtils.copyProperties(config, vo);
if (ObjectUtils.isNotEmpty(vo)) { if (ObjectUtils.isNotEmpty(vo)) {
try { try {
vo.setConfigDetails(URLDecoder.decode(vo.getConfigDetails(), StandardCharsets.UTF_8.name())); String configDetails = vo.getConfigDetails();
if (StringUtils.isNotBlank(configDetails)){
vo.setConfigDetails(URLDecoder.decode(configDetails, StandardCharsets.UTF_8.name()));
}
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
throw new SysException("仪表板配置详情解密异常"); throw new SysException("仪表板配置详情解密异常");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment