Explorar o código

修复word替换的问题

huZhiHao %!s(int64=5) %!d(string=hai) anos
pai
achega
7c67162662
Modificáronse 1 ficheiros con 1 adicións e 14 borrados
  1. 1 14
      src/main/java/platform/common/util/BokeWordUtils.java

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

@@ -274,26 +274,13 @@ public class BokeWordUtils {
             String key = "${" + textSet.getKey() + "}";
             if (value.indexOf(key) != -1) {
                 // value = textSet.getValue();//全部参数替换
-                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) {
                     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("###########################################################");
+                        System.out.println(e.getMessage());
                     }
                 }
-                if (value == null || textSet == null || textSet.getValue() == null) {
-                    System.out.println("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
-                    System.out.println("value:" + value);
-                    System.out.println("textSet:" + textSet.toString());
-                    System.out.println("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
-                }
             }
         }
         //模板未匹配到区域替换为空