|
|
@@ -1021,10 +1021,10 @@ public class OpenIMServiceImpl implements OpenIMService {
|
|
|
throw new ServiceException("获取管理员token失败");
|
|
|
}
|
|
|
}
|
|
|
-// @Async
|
|
|
+ @Async
|
|
|
@Override
|
|
|
public void checkAndImportFriend(Long companyUserId,String fsUserId) {
|
|
|
-// try {
|
|
|
+ try {
|
|
|
// 注册账号
|
|
|
accountCheck( "C" + companyUserId, "2");
|
|
|
accountCheck( "U" + fsUserId, "1");
|
|
|
@@ -1033,9 +1033,9 @@ public class OpenIMServiceImpl implements OpenIMService {
|
|
|
ArrayList<String> userIds = new ArrayList<>();
|
|
|
userIds.add("U" + fsUserId);
|
|
|
importFriend("C" + companyUserId, userIds);
|
|
|
-// } catch (Exception e) {
|
|
|
-// log.error("异步执行IM注册/添加好友失败:", e);
|
|
|
-// }
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error("异步执行IM注册/添加好友失败:", e);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
@Async
|
|
|
@@ -1058,6 +1058,7 @@ public class OpenIMServiceImpl implements OpenIMService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ @Async
|
|
|
@Override
|
|
|
public void checkAndImportFriendByDianBoNew(Long companyUserId, String fsUserId, boolean isUpdate) {
|
|
|
try {
|