| | |
| | |
|
| | | @Resource
|
| | | private JumpDetailV2Service jumpDetailV2Service;
|
| | | |
| | | |
| | |
|
| | | /**
|
| | | * 获取任务列表
|
| | | *
|
| | |
| | | * @param page
|
| | | * @param out
|
| | | */
|
| | | // @RequestSerializableByKey(key="#acceptData.device")
|
| | | // @RequestSerializableByKey(key="#acceptData.device")
|
| | | @RequestMapping(value = "getTaskList", method = RequestMethod.POST)
|
| | | public void getTaskList(AcceptData acceptData, Long uid, Integer page, PrintWriter out) {
|
| | | if (uid == null || uid <= 0) {
|
| | |
| | | }
|
| | |
|
| | | for (IntegralTaskClassVO taskClassVO : list) {
|
| | | UniqueKeyEnum uniqueKey = taskClassVO.getUniqueKey(); |
| | | |
| | | 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()));
|
| | | |
| | | Constant.getPlatformCode(acceptData.getPlatform()),
|
| | | Integer.parseInt(acceptData.getVersion()));
|
| | |
|
| | | taskClassVO.setJumpDetail(jumpDetailV2);
|
| | | }
|
| | | |
| | | |
| | |
|
| | | String progress = taskClassVO.getProgress();
|
| | | if (StringUtil.isNullOrEmpty(progress))
|
| | | continue;
|
| | |
| | | out.print(JsonUtil.loadFalseResult(1, e.getMsg()));
|
| | | }
|
| | | }
|
| | | |
| | |
|
| | | /**
|
| | | * 兑换金币
|
| | |
| | | IntegralExchange exchange = integralExchangeService.exchange(uid, id);
|
| | |
|
| | | UserInfoExtra extraVO = userInfoExtraService.getUserInfoExtra(uid);
|
| | | |
| | |
|
| | | GsonBuilder gsonBuilder = new GsonBuilder().excludeFieldsWithoutExposeAnnotation();
|
| | | Gson gson = gsonBuilder.create();
|
| | |
|
| | |
| | | out.print(JsonUtil.loadFalseResult(1, "页码不正确"));
|
| | | return;
|
| | | }
|
| | | |
| | |
|
| | | try {
|
| | | List<CodePublishRecord> list = codePublishRecordService.listValid((page - 1) * Constant.PAGE_SIZE,
|
| | | Constant.PAGE_SIZE);
|
| | |
| | | }
|
| | | IntegralTaskRecord record = null;
|
| | | try {
|
| | | record = integralGetService.addEventStatistic(uid, event, null);
|
| | | record = integralGetService.addEventStatistic(uid, event);
|
| | | } catch (IntegralGetException e) {
|
| | | }
|
| | | if (record == null) {
|