|
@@ -26,6 +26,7 @@ import com.yonge.cooleshow.biz.dal.enums.*;
|
|
|
import com.yonge.cooleshow.biz.dal.enums.im.EImGroupMemberRoleType;
|
|
|
import com.yonge.cooleshow.biz.dal.mapper.SysUserMapper;
|
|
|
import com.yonge.cooleshow.biz.dal.service.*;
|
|
|
+import com.yonge.cooleshow.biz.dal.service.im.ImGroupCoreService;
|
|
|
import com.yonge.cooleshow.biz.dal.vo.UserAccountVo;
|
|
|
import com.yonge.cooleshow.biz.dal.wrapper.UserInfoWrapper;
|
|
|
import com.yonge.cooleshow.common.entity.HttpResponseResult;
|
|
@@ -81,6 +82,9 @@ public class SysUserServiceImpl implements SysUserService {
|
|
|
private ImGroupService imGroupService;
|
|
|
|
|
|
@Autowired
|
|
|
+ private ImGroupCoreService imGroupCoreService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
private CourseGroupService courseGroupService;
|
|
|
|
|
|
@Autowired
|
|
@@ -487,6 +491,9 @@ public class SysUserServiceImpl implements SysUserService {
|
|
|
.eq(ImUserFriend::getFriendId, userId)
|
|
|
.eq(ImUserFriend::getFriendType, EClientType.STUDENT)
|
|
|
.remove();
|
|
|
+
|
|
|
+ // 注销三方im
|
|
|
+ imGroupCoreService.accountDelete(Lists.newArrayList(imGroupCoreService.getImUserId(userId, ClientEnum.STUDENT)));
|
|
|
}
|
|
|
|
|
|
|
|
@@ -520,6 +527,8 @@ public class SysUserServiceImpl implements SysUserService {
|
|
|
.eq(ImUserFriend::getFriendId, userId)
|
|
|
.eq(ImUserFriend::getFriendType, EClientType.TEACHER)
|
|
|
.remove();
|
|
|
+ // 注销三方im
|
|
|
+ imGroupCoreService.accountDelete(Lists.newArrayList(imGroupCoreService.getImUserId(userId, ClientEnum.TEACHER)));
|
|
|
}
|
|
|
}
|
|
|
public EClientType getClientType(String jpushType){
|