| | |
| | | package com.ruoyi.goods.utils; |
| | | |
| | | import cn.hutool.core.collection.CollectionUtil; |
| | | import cn.hutool.core.date.DatePattern; |
| | | import cn.hutool.core.date.DateUtil; |
| | | import cn.hutool.http.HttpUtil; |
| | | import com.alibaba.fastjson2.JSONArray; |
| | | import com.alibaba.fastjson2.JSONObject; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.utils.DateUtils; |
| | | import com.ruoyi.common.core.utils.StringUtils; |
| | | import com.ruoyi.common.redis.service.RedisService; |
| | | import com.ruoyi.goods.domain.dto.XiaoeCourseQueryDto; |
| | |
| | | */ |
| | | public Page<XiaoeLiveVoV2> getLivePageListV2(XiaoeLiveQueryDto dto) { |
| | | Map<String,Object> postParams = new HashMap<>(); |
| | | postParams.put("search_content", dto.getSearchContent()); |
| | | postParams.put("create_mode", dto.getCreateMode()); |
| | | postParams.put("state", 0); |
| | | postParams.put("search_alive_type", dto.getSearchAliveType()); |
| | | postParams.put("search_alive_type", -1); |
| | | postParams.put("alive_play_state", dto.getAlivePlayState()); |
| | | postParams.put("page", dto.getPage()); |
| | | postParams.put("page_size", dto.getPageSize()); |
| | | postParams.put("access_token", getAccessToken()); |
| | | postParams.put("zb_start_at_min", DateUtil.format(DateUtils.getTodayStartTime(), DatePattern.NORM_DATETIME_PATTERN)); |
| | | postParams.put("tag_ids", dto.getTags()); |
| | | log.info("获取直播详情2.0请求参数:{}", JSONObject.toJSONString(postParams)); |
| | | String post = HttpUtil.post(LIVE_PAGE_LIST_V2, JSONObject.toJSONString(postParams)); |
| | | Page<XiaoeLiveVoV2> xiaoeLiveVOPage = new Page<>(); |
| | | if (StringUtils.isNotBlank(post)) { |