yujian
2019-01-29 6b31dd8398fadda38d785ad7190151cb06aa9bd6
队员-邀请码状态返回+邀请消息
2个文件已修改
21 ■■■■■ 已修改文件
fanli/src/main/java/com/yeshi/fanli/controller/client/UserInfoController.java 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/service/impl/hongbao/ThreeSaleSerivceImpl.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/controller/client/UserInfoController.java
@@ -1832,6 +1832,7 @@
    @RequestMapping(value = "getMyTeam", method = RequestMethod.POST)
    public void getMyTeam(AcceptData acceptData, long page, long uid, long type, PrintWriter out) {
        try {
        int pageSize = Constant.PAGE_SIZE;
        JSONObject resultData = new JSONObject();
@@ -1870,6 +1871,17 @@
            if (helpLink == null) {
                helpLink = "";
            }
                boolean hasCode = false;
                String inviteCode = userInfoExtraService.getUserInviteCode(uid);
                if (inviteCode != null && inviteCode.trim().length() > 0) {
                    hasCode = true; // 已有邀请码
                } else {
                    // 邀请激活链接
                    resultData.put("activationlink", configService.get("invite_activation_url"));
                }
                resultData.put("hasCode", hasCode);
            resultData.put("helpLink", helpLink);
            resultData.put("firstTeam", firstTeam);
            resultData.put("firstTeamTotal", firstTeamTotal);
@@ -1878,6 +1890,13 @@
            resultData.put("boss", bossData);
        }
        out.print(JsonUtil.loadTrueResult(resultData));
        } catch (UserInfoExtraException e) {
            out.print(JsonUtil.loadFalseResult(e.getMsg()));
        } catch (Exception e) {
            out.print(JsonUtil.loadFalseResult("统计失败"));
            e.printStackTrace();
        }
    }
    /**
fanli/src/main/java/com/yeshi/fanli/service/impl/hongbao/ThreeSaleSerivceImpl.java
@@ -635,6 +635,8 @@
            // 删除已失效关系
            threeSaleMapper.deleteExpireRecord(inviter.getId(), invitee.getId());
        }
        // 邀请消息
        userInviteMsgNotificationService.inviteScan(inviter.getId(), threeSale);
    }