| | |
| | | data.put("inviteList", String.format("http://%s/%s/client/share/friends_new.html",
|
| | | Constant.systemCommonConfig.getProjectHost(), Constant.systemCommonConfig.getProjectName()));
|
| | | List<BannerVO> pictureList = swiperPictureService.getByBannerCardAndVersion("invite_top_banner",
|
| | | acceptData.getPlatform(), Integer.parseInt(acceptData.getVersion()));
|
| | | acceptData.getPlatform(), Integer.parseInt(acceptData.getVersion()),acceptData.getSystem());
|
| | | if (pictureList != null && pictureList.size() > 0) {
|
| | | BannerVO picture = pictureList.get(0);
|
| | | com.alibaba.fastjson.JSONObject pictureJson = new com.alibaba.fastjson.JSONObject();
|
| | |
| | | data.put("topBanner", pictureJson);
|
| | | }
|
| | |
|
| | | data.put("desc", configService.get(ConfigKeyEnum.inviteDesc.getKey()));
|
| | | data.put("desc", configService.getValue(ConfigKeyEnum.inviteDesc.getKey(),acceptData.getSystem()));
|
| | |
|
| | | boolean hasCode = false;
|
| | | if (uid != null && uid.trim().length() > 0) {
|
| | |
| | |
|
| | | // 邀请激活链接
|
| | | if (!hasCode) {
|
| | | data.put("activationlink", configService.get(ConfigKeyEnum.inviteActivationUrl.getKey()));
|
| | | data.put("activationlink", configService.getValue(ConfigKeyEnum.inviteActivationUrl.getKey(),acceptData.getSystem()));
|
| | | }
|
| | |
|
| | | data.put("hasCode", hasCode);
|
| | |
| | | * 方法说明: 分享好友邀请图片
|
| | | *
|
| | | * @author mawurui createTime 2018年4月3日 下午3:49:05
|
| | | * @param pageIndex
|
| | | * @param out
|
| | | * @param uid
|
| | | * @throws NotExistObjectException
|
| | |
| | | String valueN = values.getValue();
|
| | | String valueBr = valueN.replace("\n", "<br><br>");
|
| | |
|
| | | data.put("helpLink", configService.get(ConfigKeyEnum.inviteHelpLink.getKey()));
|
| | | data.put("helpLink", configService.getValue(ConfigKeyEnum.inviteHelpLink.getKey(),acceptData.getSystem()));
|
| | |
|
| | | data.put("inviteRules", valueBr);
|
| | | out.print(JsonUtil.loadTrue(0, JsonUtil.getSimpleGson().toJson(data), "成功"));
|
| | |
| | | @RequestMapping(value = "getActivationTip")
|
| | | public void getActivationTip(AcceptData acceptData, String callback, PrintWriter out) {
|
| | | try {
|
| | | String tip = configService.get(ConfigKeyEnum.inviteActivationTip.getKey());
|
| | | String tip = configService.getValue(ConfigKeyEnum.inviteActivationTip.getKey(),acceptData.getSystem());
|
| | | if (tip == null || tip.trim().length() == 0) {
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("暂无提醒"));
|
| | | return;
|
| | |
| | | /**
|
| | | * 激活邀请
|
| | | *
|
| | | * @param callback
|
| | | * @param uid
|
| | | * 用户id
|
| | | * @param inviteCode
|
| | | * 邀请嘛
|
| | | * @param out
|
| | | */
|
| | |
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("邀请码不存在"));
|
| | | return;
|
| | | }
|
| | | String tip = configService.get(ConfigKeyEnum.inviteActivationSuccessTip.getKey());
|
| | | String tip = configService.getValue(ConfigKeyEnum.inviteActivationSuccessTip.getKey(),acceptData.getSystem());
|
| | |
|
| | | JSONObject data = new JSONObject();
|
| | | data.put("inviteCode", inviteCode);
|