|
@@ -27,6 +27,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;
|
|
@@ -80,6 +81,9 @@ public class SysUserServiceImpl implements SysUserService {
|
|
|
private ImGroupService imGroupService;
|
|
|
|
|
|
@Autowired
|
|
|
+ private ImGroupCoreService imGroupCoreService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
private CourseGroupService courseGroupService;
|
|
|
|
|
|
@Autowired
|
|
@@ -486,6 +490,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)));
|
|
|
}
|
|
|
|
|
|
|
|
@@ -519,6 +526,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){
|