| | |
| | |
|
| | | for (IntegralTaskClassVO taskClassVO : list) {
|
| | | UniqueKeyEnum uniqueKey = taskClassVO.getUniqueKey();
|
| | |
|
| | | UserInfoExtraVO extraVO = userInfoExtraService.getInfoExtraVOByUid(uid);
|
| | | if (extraVO == null || StringUtil.isNullOrEmpty(extraVO.getInviteCode())) {
|
| | | JumpDetailV2 jumpDetailV2 = jumpDetailV2Service.getByTypeCache("invite_activate",
|
| | | Constant.getPlatformCode(acceptData.getPlatform()),
|
| | | Integer.parseInt(acceptData.getVersion()));
|
| | |
|
| | | taskClassVO.setJumpDetail(jumpDetailV2);
|
| | | |
| | | // 邀请好友:是否激活邀请码
|
| | | if (uniqueKey == UniqueKeyEnum.inviteTeam) {
|
| | | UserInfoExtraVO extraVO = userInfoExtraService.getInfoExtraVOByUid(uid);
|
| | | if (extraVO == null || StringUtil.isNullOrEmpty(extraVO.getInviteCode())) {
|
| | | JumpDetailV2 jumpDetailV2 = jumpDetailV2Service.getByTypeCache("invite_activate",
|
| | | Constant.getPlatformCode(acceptData.getPlatform()),
|
| | | Integer.parseInt(acceptData.getVersion()));
|
| | | taskClassVO.setJumpDetail(jumpDetailV2);
|
| | | }
|
| | | }
|
| | |
|
| | | String progress = taskClassVO.getProgress();
|
| | |
| | | taskClassVO.setLightUp(true);
|
| | | }
|
| | |
|
| | | Integer dateType = 1; // 查询当日
|
| | | if (uniqueKey == UniqueKeyEnum.orderReward)
|
| | | // 查询当日
|
| | | Integer dateType = 1; |
| | | if (uniqueKey == UniqueKeyEnum.orderReward || uniqueKey == UniqueKeyEnum.accountMaintain) |
| | | dateType = null; // 查询历史
|
| | |
|
| | | Long id = taskClassVO.getId();
|
| | |
| | | return;
|
| | | }
|
| | |
|
| | | int count = 5;
|
| | | if ("android".equalsIgnoreCase(acceptData.getPlatform())) {
|
| | | count = Integer.MAX_VALUE;
|
| | | }
|
| | | int count = Integer.MAX_VALUE;
|
| | |
|
| | | List<IntegralTaskRecord> list = integralTaskRecordService.listNotReceived(count, uid);
|
| | | if (list == null) {
|
| | |
| | | return;
|
| | | }
|
| | | Integer goldCoin = integralTaskRecordService.receiveGoldCoin(uid, idList);
|
| | | Set<Long> gidList = gson.fromJson(gids, new TypeToken<HashSet<Long>>() {
|
| | | }.getType());
|
| | | List<IntegralTaskRecord> list = null;
|
| | | if (gidList != null && gidList.size() > 0) {
|
| | | list = integralTaskRecordService.listNotReceivedExcludeId(5 - gidList.size(), uid, gidList);
|
| | | } else {
|
| | | list = integralTaskRecordService.listNotReceivedExcludeId(5, uid, null);
|
| | | }
|
| | |
|
| | | if (list == null) {
|
| | | list = new ArrayList<IntegralTaskRecord>();
|
| | | }
|
| | | GsonBuilder gsonBuilder = new GsonBuilder().excludeFieldsWithoutExposeAnnotation();
|
| | | Gson gson2 = gsonBuilder.create();
|
| | |
|
| | | JSONObject data = new JSONObject();
|
| | | data.put("goldCoin", goldCoin);
|
| | | data.put("list", gson2.toJson(list));
|
| | | out.print(JsonUtil.loadTrueResult(data));
|
| | | } catch (IntegralTaskRecordException e) {
|
| | | out.print(JsonUtil.loadFalseResult(e.getMsg()));
|