|
@@ -177,6 +177,7 @@ public class FodderServiceImpl extends IBaseServiceImpl<FodderEntity, Long> impl
|
|
|
save(entity);
|
|
|
|
|
|
if (type.equals("pano")) {
|
|
|
+ log.info("准备发送消息: " + entity.getId());
|
|
|
//发消息到mq
|
|
|
rabbitTemplate.convertAndSend(RabbitConfig.PANO_EXCHANGE, RabbitConfig.PANO_QUEUE_ROUTING, entity.getId());
|
|
|
log.info("发送消息到队列完成: " + entity.getId());
|
|
@@ -186,7 +187,7 @@ public class FodderServiceImpl extends IBaseServiceImpl<FodderEntity, Long> impl
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
log.error(e.getMessage());
|
|
|
- throw new BaseRuntimeException(MsgCode.e5003, "不支持此图片");
|
|
|
+ throw new BaseRuntimeException(MsgCode.e5003, e.getMessage());
|
|
|
}
|
|
|
|
|
|
|