diff --git a/meapi/src/main/java/com/foreverwin/mesnac/meapi/util/StringUtils.java b/meapi/src/main/java/com/foreverwin/mesnac/meapi/util/StringUtils.java index 9fbb901d..8376cc76 100644 --- a/meapi/src/main/java/com/foreverwin/mesnac/meapi/util/StringUtils.java +++ b/meapi/src/main/java/com/foreverwin/mesnac/meapi/util/StringUtils.java @@ -179,6 +179,8 @@ public class StringUtils { return message; } + + static public String format(String message, Object... args) { if( message.length() <= 0 ) return message; @@ -201,7 +203,7 @@ public class StringUtils { String key = map.getKey(); String value = map.getValue(); - String keyStr = '%' + key + '%'; + String keyStr = '#' + key + '#'; if (message.contains(keyStr)) { message = message.replace(keyStr, value); }