fix: [Bug]远程excel认证时对密码中的特殊字符需要进行编码 #16089

This commit is contained in:
taojinlong
2025-06-09 13:31:56 +08:00
committed by taojinlong
parent 7f388fe9c7
commit b637725097

View File

@@ -608,22 +608,22 @@ public class ChartDataServer implements ChartDataApi {
if (formatter.getType().equals("auto")) {
String[] valueSplit = String.valueOf(value).split(".");
if (StringUtils.isEmpty(value) || !value.contains(".")) {
formatStr = "0";
formatStr = "General";
} else {
formatStr = "0." + new String(new char[valueSplit.length]).replace('\0', '0');
}
switch (formatter.getUnit()) {
case 1000:
formatStr = formatStr + "";
formatStr = formatStr + "\"\"";
break;
case 10000:
formatStr = formatStr + "";
formatStr = formatStr + "\"\"";
break;
case 1000000:
formatStr = formatStr + "百万";
formatStr = formatStr + "\"百万\"";
break;
case 100000000:
formatStr = formatStr + "'亿'";
formatStr = formatStr + "\"亿\"";
break;
default:
break;
@@ -635,7 +635,7 @@ public class ChartDataServer implements ChartDataApi {
if (formatter.getSuffix().equals("%")) {
formatStr = formatStr + "\"%\"";
} else {
formatStr = formatStr + formatter.getSuffix();
formatStr = formatStr + "\"" + formatter.getSuffix() + "\"";
}
}
}
@@ -647,16 +647,16 @@ public class ChartDataServer implements ChartDataApi {
}
switch (formatter.getUnit()) {
case 1000:
formatStr = formatStr + "";
formatStr = formatStr + "\"\"";
break;
case 10000:
formatStr = formatStr + "";
formatStr = formatStr + "\"\"";
break;
case 1000000:
formatStr = formatStr + "百万";
formatStr = formatStr + "\"百万\"";
break;
case 100000000:
formatStr = formatStr + "'亿'";
formatStr = formatStr + "\"亿\"";
break;
default:
break;
@@ -668,7 +668,7 @@ public class ChartDataServer implements ChartDataApi {
if (formatter.getSuffix().equals("%")) {
formatStr = formatStr + "\"%\"";
} else {
formatStr = formatStr + formatter.getSuffix();
formatStr = formatStr + "\"" + formatter.getSuffix() + "\"";
}
}
} else if (formatter.getType().equals("percent")) {