admin
2020-06-15 3e4ef41ffacd7f5fda2e81c3810cd11a6375b83c
fanli/src/main/java/com/yeshi/fanli/service/impl/user/invite/ThreeSaleSerivceImpl.java
@@ -433,10 +433,14 @@
    */
   @Transactional
   private void inviteSuccess(Long workerId, Long bossId) {
      // 同步粉丝消息
      teamFansInfoService.addFansInfo(workerId, bossId, new Date());
      if (!Constant.IS_TEST) {
         UserInviteMQMsg msg = new UserInviteMQMsg(bossId, workerId, null, new Date(),
               UserInviteMQMsg.STATE_SUCCESS);
         Message message = MQMsgBodyFactory.create(MQTopicName.TOPIC_USER, UserTopicTagEnum.inviteSuccess, msg);
         message.setStartDeliverTime(java.lang.System.currentTimeMillis() + 5000);
         producer.send(message);
      }
@@ -445,13 +449,6 @@
         public void run() {
            try { // 邀请金币
               integralGetService.addInviteLevelOne(bossId, workerId);
            } catch (Exception e) {
               LogHelper.error(e);
            }
            // 同步粉丝消息
            try {
               teamFansInfoService.addFansInfo(workerId, bossId, new Date());
            } catch (Exception e) {
               LogHelper.error(e);
            }