| | |
| | | validFans = true;
|
| | | }
|
| | |
|
| | | // 最近登录时间
|
| | | // 最近粉丝登录时间
|
| | | Date lastLoginTime = new Date(threeSale.getCreateTime());
|
| | | UserInfoExtra userInfoExtra = userInfoExtraService.getUserInfoExtra(workerId);
|
| | | if (userInfoExtra != null && userInfoExtra.getActiveTime() != null) {
|
| | |
| | | JSONArray array = new JSONArray();
|
| | | array.add(loginJson);
|
| | |
|
| | | // 等级
|
| | | // 查询粉丝等级
|
| | | UserInviteLevelEnum level = null;
|
| | | UserVIPLevel vipLevel = userInviteService.getVIPLevelByUid(uid);
|
| | | UserVIPLevel vipLevel = userInviteService.getVIPLevelByUid(workerId);
|
| | | if (vipLevel != null) {
|
| | | if (vipLevel.getLevel() == UserVIPLevel.LEVEL_3) {
|
| | | level = UserInviteLevelEnum.actived;
|
| | |
| | |
|
| | |
|
| | | // 判断是否存在脱离关系队员
|
| | | if (vipLevel != null) {
|
| | | UserInviteSeparate separate = userInviteSeparateService.selectByWorkerIdAndBossId(workerId, uid);
|
| | | if (vipLevel != null && state) {
|
| | | Long bossId = threeSale.getBoss().getId();
|
| | | UserInviteSeparate separate = userInviteSeparateService.selectByWorkerIdAndBossId(workerId, bossId);
|
| | | if (separate != null && separate.getEndTime() != null) {
|
| | | try {
|
| | | JSONObject contentJson1 = new JSONObject();
|
| | |
| | | JsonUtil.printMode(out, callback, JsonUtil.loadTrueResult(data));
|
| | | }
|
| | |
|
| | | |
| | |
|
| | | @RequestMapping(value = "remvoeBreak")
|
| | | public void remvoeBreak(String callback, AcceptData acceptData,Long inviteId, Long uid, Long tid, PrintWriter out) {
|
| | | if (uid == null || inviteId == null || tid == null) {
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("传输参数不完整"));
|
| | | return;
|
| | | }
|
| | | threeSaleSerivce.remvoeBreak(inviteId, uid, tid);
|
| | | |
| | | JsonUtil.printMode(out, callback, JsonUtil.loadTrueResult("操作成功"));
|
| | | }
|
| | |
|
| | | }
|