فهرست منبع

注销接口暂时不上

yuanliang 1 سال پیش
والد
کامیت
53fa7af3d3

+ 10 - 11
cooleshow-auth/auth-server/src/main/java/com/yonge/cooleshow/auth/service/impl/SysUserServiceImpl.java

@@ -434,16 +434,15 @@ public class SysUserServiceImpl extends BaseServiceImpl<Long, SysUser> implement
     @Transactional(rollbackFor = Exception.class)
     public HttpResponseResult<Void> logoffByPhone(String phone) {
 
-        try {
-            HttpResponseResult<List<String>> check = adminFeignService.accountLogoffCheck(phone);
-            List<String> errMsg = check.getData();
-            if (!CollectionUtils.isEmpty(errMsg)) {
-                return HttpResponseResult.failed(5101, null, String.join(",", errMsg));
-            }
-        } catch (Exception e) {
-            throw new BizException("数据检查失败");
-        }
-
+//        try {
+//            HttpResponseResult<List<String>> check = adminFeignService.accountLogoffCheck(phone);
+//            List<String> errMsg = check.getData();
+//            if (!CollectionUtils.isEmpty(errMsg)) {
+//                return HttpResponseResult.failed(5101, null, String.join(",", errMsg));
+//            }
+//        } catch (Exception e) {
+//            throw new BizException("数据检查失败");
+//        }
         int num = sysUserDao.countByPhone(phone);
         //冻结相关所有客户端账号
         sysUserDao.updateLockStatusByPhone(phone);
@@ -453,7 +452,7 @@ public class SysUserServiceImpl extends BaseServiceImpl<Long, SysUser> implement
             throw new BizException("用户不存在或已注销");
         }
         // 解散群、退群、删除好友关系
-        adminFeignService.logoffQuitImGroup(phone);
+//        adminFeignService.logoffQuitImGroup(phone);
 
         //退出登录
         tokenService.revokeTokenByPhone(phone);