admin
2020-06-08 457f4881a89c03984c7b46ed10e8919d3294976c
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);
               }
            }