|
@@ -333,21 +333,28 @@ public class UserManagerImpl extends MongoRepository implements UserManager {
|
|
|
|
|
|
|
|
|
Integer userId = idxManager.getUserId();
|
|
|
+ System.out.println("+++++, 生成userId: " + userId);
|
|
|
|
|
|
Map<String, Object> data = userRepository.addUser(userId, example);
|
|
|
if (null != data) {
|
|
|
try {
|
|
|
+ System.out.println("+++++, 111");
|
|
|
KXMPPServiceImpl.getInstance().register(userId.toString(), example.getPassword());
|
|
|
} catch (Exception e) {
|
|
|
+ System.out.println("+++++, 222");
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
try {
|
|
|
+ System.out.println("+++++, 333");
|
|
|
friendsManager.followUser(userId, 10000);
|
|
|
} catch (Exception e) {
|
|
|
+ System.out.println("+++++, 444");
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
+ System.out.println("+++++, 555");
|
|
|
return data;
|
|
|
}
|
|
|
+ System.out.println("+++++, 666");
|
|
|
throw new ServiceException("用户注册失败");
|
|
|
}
|
|
|
|