xiaoyong931011
2021-12-08 f5e6133809c553cfd9fb28ee61019927c547c374
src/main/java/com/xcong/excoin/rabbit/consumer/FishHitConsumer.java
@@ -35,13 +35,12 @@
    @RabbitListener(queues = RabbitMqConfig.QUEUE_FISH_HIT)
    public void fishHit(String content) {
        log.info("收到打渔消息:{}", content);
        MsgModel msg = JSONObject.parseObject(content, MsgModel.class);
        synchronized (this) {
            List<CannonOwnRecord> forts = cannonOwnRecordDao.selectCannonOwnRecordsByMemberIdAndCannonCode(msg.getMemberId(), msg.getFortCode());
            if (CollUtil.isEmpty(forts)) {
                log.info("未拥有该炮台");
                log.info("未拥有该炮台:{}", content);
                return;
            }
@@ -57,7 +56,7 @@
            }
            if (msg.getConsume().compareTo(available) > 0) {
                log.info("余额不足");
                log.info("余额不足:{}", content);
                return;
            }