bug fix
This commit is contained in:
parent
3ccea663d5
commit
2ad726523d
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user