yujian
2019-01-26 7ff235fa302b985f5410e119ef09644d84185f3d
返回是否有邀请码状态
1个文件已修改
13 ■■■■■ 已修改文件
fanli/src/main/java/com/yeshi/fanli/controller/client/InviteGetMoneyController.java 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/controller/client/InviteGetMoneyController.java
@@ -87,7 +87,7 @@
    @RequestMapping(value = "/inviteGetMoney", method = RequestMethod.POST)
    public void everyDayTaskList(AcceptData acceptData, int pageIndex, PrintWriter out, String uid)
            throws NotExistObjectException {
            throws NotExistObjectException,UserInfoExtraException {
        // 查询商品总数
        Integer totalCount = 0;
        int totalPage = totalCount % Constant.PAGE_SIZE == 0 ? totalCount / Constant.PAGE_SIZE
@@ -172,6 +172,17 @@
        }
        data.put("desc", configService.get("invite_desc"));
        boolean hasCode = false;
        if (uid != null && uid.trim().length() > 0) {
            String inviteCode = userInfoExtraService.getUserInviteCode(Long.parseLong(uid));
            if (inviteCode != null && inviteCode.trim().length() > 0) {
                hasCode = true;    // 已有邀请码
            }
        }
        data.put("hasCode", hasCode);
        com.alibaba.fastjson.JSONObject root = new com.alibaba.fastjson.JSONObject();
        root.put("code", 0);