| @@ -27,13 +27,13 @@ public class WxLiveController extends BaseController { | |||||
| * @return | * @return | ||||
| */ | */ | ||||
| @ApiOperation("获取所有直播间和商品信息") | @ApiOperation("获取所有直播间和商品信息") | ||||
| @RedisCache(expireTime = 30,dateUnit = TimeUnit.MINUTES) | |||||
| @RedisCache(expireTime = 5, dateUnit = TimeUnit.MINUTES) | |||||
| @GetMapping("/roomList") | @GetMapping("/roomList") | ||||
| public ResultData getLiveinfos(String appId) { | |||||
| public ResultData getLiveinfos(String appId, Integer start, Integer limit) { | |||||
| ResultData resultData = new ResultData(); | ResultData resultData = new ResultData(); | ||||
| try { | try { | ||||
| WxMaService wxMaService = getWeappService(appId); | WxMaService wxMaService = getWeappService(appId); | ||||
| resultData.data = wxMaService.getLiveService().getLiveinfos(); | |||||
| resultData.data = wxMaService.getLiveService().getLiveInfo(start,limit); | |||||
| } catch (WxErrorException e) { | } catch (WxErrorException e) { | ||||
| logger.error("getLiveinfos error", e); | logger.error("getLiveinfos error", e); | ||||
| throw new MallinkException(ErrorCode.SYS_SERVER_ERROR); | throw new MallinkException(ErrorCode.SYS_SERVER_ERROR); | ||||
| @@ -52,7 +52,7 @@ public class WxLiveController extends BaseController { | |||||
| * @return | * @return | ||||
| */ | */ | ||||
| @ApiOperation("获取直播房间回放数据和商品信息") | @ApiOperation("获取直播房间回放数据和商品信息") | ||||
| @RedisCache(expireTime = 30,dateUnit = TimeUnit.MINUTES) | |||||
| @RedisCache(expireTime = 5, dateUnit = TimeUnit.MINUTES) | |||||
| @GetMapping("/replayList") | @GetMapping("/replayList") | ||||
| public ResultData getLiveReplay(Integer room_id, Integer start, Integer limit) { | public ResultData getLiveReplay(Integer room_id, Integer start, Integer limit) { | ||||
| ResultData resultData = new ResultData(); | ResultData resultData = new ResultData(); | ||||