|
@@ -31,9 +31,7 @@ public class ManageToSaleConsumer {
|
|
String messageId = message.getMessageProperties().getMessageId();
|
|
String messageId = message.getMessageProperties().getMessageId();
|
|
String msg = new String(message.getBody(), StandardCharsets.UTF_8);
|
|
String msg = new String(message.getBody(), StandardCharsets.UTF_8);
|
|
log.info("接受结果mq--messageId:{},msg:{}",messageId,msg);
|
|
log.info("接受结果mq--messageId:{},msg:{}",messageId,msg);
|
|
- msg = msg.substring(1, msg.length() - 1);
|
|
|
|
|
|
|
|
- msg = StringEscapeUtils.unescapeJava(msg);
|
|
|
|
ManageToSaleParam param = JSONObject.parseObject(msg, ManageToSaleParam.class);
|
|
ManageToSaleParam param = JSONObject.parseObject(msg, ManageToSaleParam.class);
|
|
String command = param.getCommand();
|
|
String command = param.getCommand();
|
|
switch (command){
|
|
switch (command){
|