| | |
| | | import com.yeshi.fanli.entity.bus.user.UserInfo;
|
| | | import com.yeshi.fanli.entity.bus.user.UserInfoExtra;
|
| | | import com.yeshi.fanli.entity.bus.user.UserInviteSeparate;
|
| | | import com.yeshi.fanli.entity.system.ConfigKeyEnum;
|
| | | import com.yeshi.fanli.service.inter.config.ConfigService;
|
| | | import com.yeshi.fanli.service.inter.user.UserInfoExtraService;
|
| | | import com.yeshi.fanli.service.inter.user.UserInviteSeparateService;
|
| | |
| | | private ThreeSaleExtraInfoSerivce threeSaleExtraInfoSerivce;
|
| | |
|
| | | /**
|
| | | * 站内信提醒队员添加微信号
|
| | | * 专属邀请码条件
|
| | | *
|
| | | * @param acceptData
|
| | | * @param uid
|
| | |
| | | return;
|
| | | }
|
| | |
|
| | | JSONArray array1 = new JSONArray();
|
| | | array1.add("1.邀请码可帮助好友激活邀请功能;");
|
| | | array1.add("2.好友通过你的邀请码激活邀请功能后,将成为你的直接粉丝,未来产生的订单你都有奖金;");
|
| | | array1.add("3.邀请码具有唯一性。");
|
| | | |
| | | JSONObject desc1 = new JSONObject();
|
| | | desc1.put("title", "邀请码的作用");
|
| | | desc1.put("content",array1);
|
| | | |
| | | JSONArray array2 = new JSONArray();
|
| | | array2.add("1.你可以自由设置4~12位简单易记的邀请码;");
|
| | | array2.add("2.专属邀请码是对你和你的团队尊贵身份的彰显。");
|
| | | |
| | | JSONObject desc2 = new JSONObject();
|
| | | desc2.put("title", "专属邀请码优势");
|
| | | desc2.put("content",array2);
|
| | | |
| | | JSONArray array = new JSONArray();
|
| | | array.add(desc1);
|
| | | array.add(desc2);
|
| | | |
| | | JSONObject data = new JSONObject();
|
| | | data.put("desc", array);
|
| | | data.put("num", threeSaleSerivce.countFirstTeam(uid, 1));
|
| | | data.put("limit", Constant.INVITE_CODRE_TAILOR_LIMIT);
|
| | | |
| | | out.print(JsonUtil.loadTrueResult(data));
|
| | | }
|
| | |
|
| | |
| | |
|
| | | JSONObject resultData = new JSONObject();
|
| | |
|
| | | String helpLink = configService.get("team_help_url");
|
| | | String helpLink = configService.get(ConfigKeyEnum.teamHelpUrl.getKey());
|
| | | if (helpLink == null) {
|
| | | helpLink = "";
|
| | | }
|
| | |
| | | hasCode = true; // 已有邀请码
|
| | | } else {
|
| | | // 邀请激活链接
|
| | | resultData.put("activationlink", configService.get("invite_activation_url"));
|
| | | resultData.put("activationlink", configService.get(ConfigKeyEnum.inviteActivationUrl.getKey()));
|
| | | }
|
| | | resultData.put("hasCode", hasCode);
|
| | |
|
| | |
| | | bossData.put("inviteTime", "你于 " + sdf.format(inviteTime) + "接受了TA的邀请");
|
| | | } else {
|
| | | bossData.put("hasBoss", false);
|
| | | bossData.put("helpLink", configService.get("invite_code_hlep_link"));
|
| | | bossData.put("helpLink", configService.get(ConfigKeyEnum.inviteCodeHlepLink.getKey()));
|
| | | bossData.put("weiXinTip", "恭喜你,我们的优质用户;\r\n你并没有邀请人,但你的邀请激活功能是被默认开启的;\r\n你拥有独特的无邀请人激活码。");
|
| | | }
|
| | | return bossData;
|