Kaynağa Gözat

测试word替换的问题

huZhiHao 5 yıl önce
ebeveyn
işleme
9cf201de5a

+ 8 - 1
src/main/java/platform/common/util/BokeWordUtils.java

@@ -279,7 +279,14 @@ public class BokeWordUtils {
                 System.out.println("textSet:" + textSet.toString());
                 System.out.println("===================================================================");
                 if (value != null && textSet != null && textSet.getValue() != null) {
-                    value = value.replace(key, textSet.getValue());//仅替换参数
+                    try {
+                        value = value.replace(key, textSet.getValue());//仅替换参数
+                    }catch (Exception e){
+                        System.out.println("###########################################################");
+                        System.out.println("value:" + value);
+                        System.out.println("textSet:" + textSet.toString());
+                        System.out.println("###########################################################");
+                    }
                 }
                 if (value == null || textSet == null || textSet.getValue() == null) {
                     System.out.println("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");