This commit is contained in:
crusader 2017-10-13 14:32:01 +09:00
parent 3ccea663d5
commit 2ad726523d

View File

@ -97,7 +97,11 @@ public class RedisMessagePublisher implements MessagePublisher {
List<String> results = new ArrayList<>(params.length);
try {
for (Object param : params) {
results.add(objectMapper.writeValueAsString(param));
if (param.getClass().equals(String.class)) {
results.add((String)param);
} else {
results.add(objectMapper.writeValueAsString(param));
}
}
} catch (IOException e) {
e.printStackTrace();