许鹏程
2023-08-21 1738593e6df795389747c53b15d136ea85b0f03d
mobile
已修改1个文件
7 ■■■■ 文件已修改
src/main/java/com/product/mobile/core/service/NavBarManagerService.java 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/product/mobile/core/service/NavBarManagerService.java
@@ -160,7 +160,7 @@
        sql.append(" a.nav_bar_name, ");
        sql.append(" a.module_category, ");
        sql.append(" a.uuid ,");
        sql.append(" b.uuid ,");
        sql.append(" concat( '/', b.uuid ) ,");
        sql.append(" a.sequence, ");
        sql.append(" b.route_name,a.module_sequence ");
        sql.append(" order by a.module_sequence,a.sequence");
@@ -177,6 +177,11 @@
                String file_uuid = dt.getString(i, MobileCoreConst.NAV_BAR_IMG);
                try {
                    byte[] fileContent = fileManagerService.getFileContent(file_uuid);
                    if(fileContent==null || fileContent.length==0){
                        dt.setFieldValue(i, MobileCoreConst.NAV_BAR_IMG, null);
                        navBarEntities.add(new NavBarEntity(dt.getFieldSetEntity(i)));
                        continue;
                    }
                    String bytes = Base64.encodeBase64String(fileContent);
                    dt.setFieldValue(i, MobileCoreConst.NAV_BAR_IMG, bytes);
                } catch (Exception e) {