From 0306205381b55883824bc74e3a764cc6a6ca77f7 Mon Sep 17 00:00:00 2001 From: zhanghan11 Date: Fri, 9 Aug 2024 16:26:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=A0=E6=84=9F=E5=99=A8=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/service/impl/SysConfigServiceImpl.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tzipc-server/tzipc-system/src/main/java/com/inspur/system/service/impl/SysConfigServiceImpl.java b/tzipc-server/tzipc-system/src/main/java/com/inspur/system/service/impl/SysConfigServiceImpl.java index 74e60e8..78b8c46 100644 --- a/tzipc-server/tzipc-system/src/main/java/com/inspur/system/service/impl/SysConfigServiceImpl.java +++ b/tzipc-server/tzipc-system/src/main/java/com/inspur/system/service/impl/SysConfigServiceImpl.java @@ -116,10 +116,14 @@ public class SysConfigServiceImpl implements ISysConfigService */ @Override public Map selectSharedKeys(){ - Map returnMap = new HashMap<>(); - Map map = new HashMap<>(); + Map parameter = new HashMap<>(); + Map map = new HashMap<>(); map.put("time",Integer.parseInt(selectConfigByKey("shared.time"))); - returnMap.put("shared",map); + map.put("otaflag",selectConfigByKey("shared.otaflag")); + map.put("ver",selectConfigByKey("shared.ver")); + parameter.put("parameter",map); + Map returnMap = new HashMap<>(); + returnMap.put("shared",parameter); return returnMap; }