| | |
| | | import com.yeshi.buwan.domain.goldcorn.GoldCornTaskActionDetail; |
| | | import com.yeshi.buwan.domain.jump.JumpDetail; |
| | | import com.yeshi.buwan.domain.jump.JumpTypeEnum; |
| | | import com.yeshi.buwan.domain.system.DetailSystem; |
| | | import com.yeshi.buwan.domain.system.DetailSystemConfig; |
| | | import com.yeshi.buwan.dto.goldcorn.SignInGoldCornDateData; |
| | | import com.yeshi.buwan.exception.goldcorn.SignInException; |
| | | import com.yeshi.buwan.exception.user.LoginUserException; |
| | | import com.yeshi.buwan.service.imp.DetailSystemConfigService; |
| | | import com.yeshi.buwan.service.inter.goldcorn.GoldCornTaskActionDetailService; |
| | | import com.yeshi.buwan.service.inter.goldcorn.SignInService; |
| | | import com.yeshi.buwan.service.inter.system.SystemConfigService; |
| | |
| | | import com.yeshi.buwan.vo.goldcorn.GoldCornTaskVO; |
| | | import com.yeshi.buwan.vo.goldcorn.SignInInfoVO; |
| | | import net.sf.json.JSONObject; |
| | | import org.apache.solr.common.params.ConfigSetParams; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.stereotype.Controller; |
| | |
| | | |
| | | @Resource |
| | | private GoldCornTaskActionDetailService goldCornTaskActionDetailService; |
| | | |
| | | @Resource |
| | | private DetailSystemConfigService configService; |
| | | |
| | | |
| | | /** |
| | |
| | | List<GoldCornTaskVO> voList = new ArrayList<>(); |
| | | try { |
| | | //登录 |
| | | List<GoldCornGetSource> list = goldCornManager.listGetCornSource(1, 20); |
| | | List<GoldCornGetSource> list1 = goldCornManager.listGetCornSource(1, 20); |
| | | |
| | | List<GoldCornGetSource> list = new ArrayList<>(); |
| | | list.addAll(list1); |
| | | |
| | | //删除华为渠道的看激励视频任务 |
| | | if (acceptData.getChannel().equalsIgnoreCase("huawei")) { |
| | | if (list != null && list.size() > 0) |
| | | for (int i = 0; i < list.size(); i++) { |
| | | if (list.get(i).getSourceCode().equalsIgnoreCase(CodeCornGetSourceType.watchRewardAd.name())) { |
| | | //华为是否正在上线 |
| | | DetailSystemConfig onLiningVersionInfo = configService.getConfigByKey("ad_hw_online_version_info", new DetailSystem("44"), 1); |
| | | JSONObject onLiningVersionInfoJson = JSONObject.fromObject(onLiningVersionInfo.getValue()); |
| | | int onLiningVersionCode = onLiningVersionInfoJson.optInt("versionCode"); |
| | | if (acceptData.getVersion() >= onLiningVersionCode) { |
| | | list.remove(i); |
| | | break; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | List<String> sourceCodes = new ArrayList<>(); |
| | | for (GoldCornGetSource source : list) { |