| @@ -4,16 +4,16 @@ import cn.binarywang.wx.miniapp.api.WxMaService; | |||||
| import com.iformall.annotation.RedisCache; | import com.iformall.annotation.RedisCache; | ||||
| import com.iformall.common.ErrorCode; | import com.iformall.common.ErrorCode; | ||||
| import com.iformall.common.ResultData; | import com.iformall.common.ResultData; | ||||
| import com.iformall.domain.po.*; | |||||
| import com.iformall.domain.po.WxCUser; | |||||
| import com.iformall.exception.MallinkException; | import com.iformall.exception.MallinkException; | ||||
| import io.swagger.annotations.Api; | import io.swagger.annotations.Api; | ||||
| import io.swagger.annotations.ApiOperation; | import io.swagger.annotations.ApiOperation; | ||||
| import me.chanjar.weixin.common.error.WxErrorException; | import me.chanjar.weixin.common.error.WxErrorException; | ||||
| import org.slf4j.Logger; | import org.slf4j.Logger; | ||||
| import org.slf4j.LoggerFactory; | import org.slf4j.LoggerFactory; | ||||
| import org.springframework.web.bind.annotation.*; | |||||
| import java.util.concurrent.TimeUnit; | |||||
| import org.springframework.web.bind.annotation.GetMapping; | |||||
| import org.springframework.web.bind.annotation.RequestMapping; | |||||
| import org.springframework.web.bind.annotation.RestController; | |||||
| @RestController | @RestController | ||||
| @RequestMapping("/api/live") | @RequestMapping("/api/live") | ||||
| @@ -27,7 +27,7 @@ public class WxLiveController extends BaseController { | |||||
| * @return | * @return | ||||
| */ | */ | ||||
| @ApiOperation("获取所有直播间和商品信息") | @ApiOperation("获取所有直播间和商品信息") | ||||
| @RedisCache(expireTime = 5, dateUnit = TimeUnit.MINUTES) | |||||
| @RedisCache(expireTime = 10) | |||||
| @GetMapping("/roomList") | @GetMapping("/roomList") | ||||
| public ResultData getLiveinfos(String appId, Integer start, Integer limit) { | public ResultData getLiveinfos(String appId, Integer start, Integer limit) { | ||||
| ResultData resultData = new ResultData(); | ResultData resultData = new ResultData(); | ||||
| @@ -52,7 +52,7 @@ public class WxLiveController extends BaseController { | |||||
| * @return | * @return | ||||
| */ | */ | ||||
| @ApiOperation("获取直播房间回放数据和商品信息") | @ApiOperation("获取直播房间回放数据和商品信息") | ||||
| @RedisCache(expireTime = 5, dateUnit = TimeUnit.MINUTES) | |||||
| @RedisCache(expireTime = 10) | |||||
| @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(); | ||||