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