admin
2019-03-13 33b4ed2bbf28ec16b66e552680f56a691a4e908d
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,23 @@
      }
      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;   // 已有邀请码
         }
      }
      // 邀请激活链接
      if (!hasCode) {
         data.put("activationlink", configService.get("invite_activation_url"));
      }
      data.put("hasCode", hasCode);
      com.alibaba.fastjson.JSONObject root = new com.alibaba.fastjson.JSONObject();
      root.put("code", 0);
@@ -261,6 +278,7 @@
            JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("激活失败"));
            return;
         }
         JsonUtil.printMode(out, callback, JsonUtil.loadTrueResult("激活成功"));
         
      } catch (UserInfoExtraException e) {