admin
2020-05-19 744594ef1a2f530fc3e86ea9dc48b62247f79420
fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserInfoModifyRecordServiceImpl.java
@@ -112,12 +112,21 @@
               }
               Message message = MQMsgBodyFactory.create(MQTopicName.TOPIC_USER,
                     UserTopicTagEnum.userAccountBinding, mqMsg);
               producer.send(message);
               if (!Constant.IS_TEST)
                  producer.send(message);
            } else {// 修改
               UserInfoUpdateMQMsg mqMsg = null;
               if (type == ModifyTypeEnum.portrait) {
                  mqMsg = new UserInfoUpdateMQMsg(uid, UserInfoUpdateTypeEnum.portrait, value, new Date());
               } else if (type == ModifyTypeEnum.nickName)
                  mqMsg = new UserInfoUpdateMQMsg(uid, UserInfoUpdateTypeEnum.nickName, value, new Date());
               else if (type == ModifyTypeEnum.setWeiXinNum)
                  mqMsg = new UserInfoUpdateMQMsg(uid, UserInfoUpdateTypeEnum.wxId, value, new Date());
               if (mqMsg != null) {
                  Message message = MQMsgBodyFactory.create(MQTopicName.TOPIC_USER,
                        UserTopicTagEnum.userInfoUpdate, new Gson().toJson(new UserInfoUpdateMQMsg(uid,
                              UserInfoUpdateTypeEnum.portrait, value, new Date())));
                        UserTopicTagEnum.userInfoUpdate, mqMsg);
                  producer.send(message);
               }
            }