| | |
| | | import com.yeshi.fanli.util.VersionUtil;
|
| | | import com.yeshi.fanli.util.account.UserUtil;
|
| | | import com.yeshi.fanli.util.annotation.RequestSerializableByKey;
|
| | | import com.yeshi.fanli.vo.homemodule.BannerVO;
|
| | |
|
| | | import net.sf.json.JSONArray;
|
| | | import net.sf.json.JSONObject;
|
| | |
| | | data.put("moneyLastMonth", "---");
|
| | | } else {
|
| | | // 我的队员
|
| | | long myFirstTeamCount = threeSaleSerivce.getFirstUsersCount(Long.parseLong(uid));
|
| | | long mySecondTeamCount = threeSaleSerivce.getSecondUsersCount(Long.parseLong(uid));
|
| | | long myFirstTeamCount = threeSaleSerivce.countFirstTeam(Long.parseLong(uid));
|
| | | long mySecondTeamCount = threeSaleSerivce.countSecondTeam(Long.parseLong(uid));
|
| | | long myTeamCount = myFirstTeamCount + mySecondTeamCount;
|
| | | data.put("myTeam", myTeamCount);
|
| | | // 1.5.0后已经不使用此字段
|
| | |
| | | data.put("activityRules", valueBr);
|
| | | data.put("inviteList", String.format("http://%s/%s/client/share/friends_new.html",
|
| | | Constant.systemCommonConfig.getProjectHost(), Constant.systemCommonConfig.getProjectName()));
|
| | | List<SwiperPicture> pictureList = swiperPictureService.getByBannerCardAndVersion("invite_top_banner",
|
| | | acceptData.getPlatform(), Integer.parseInt(acceptData.getVersion()));
|
| | | List<BannerVO> pictureList = swiperPictureService.getByBannerCardAndVersion("invite_top_banner",
|
| | | acceptData.getPlatform(), Integer.parseInt(acceptData.getVersion()),acceptData.getSystem());
|
| | | if (pictureList != null && pictureList.size() > 0) {
|
| | | SwiperPicture picture = pictureList.get(0);
|
| | | BannerVO picture = pictureList.get(0);
|
| | | com.alibaba.fastjson.JSONObject pictureJson = new com.alibaba.fastjson.JSONObject();
|
| | | pictureJson.put("src", picture.getSrc());
|
| | | pictureJson.put("jumpDetail", picture.getJumpDetail());
|
| | |
| | | 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);
|