admin
2021-02-01 c6c5a8ce0f42d46ea2fe0312c9eda67a49fd3917
src/test/java/com/hxh/spring/test/FunTV.java
@@ -11,6 +11,7 @@
import com.yeshi.buwan.funtv.entity.VideoFunTV;
import com.yeshi.buwan.funtv.vo.FunTVShortVideo;
import com.yeshi.buwan.funtv.vo.FunTVTVAlbum;
import com.yeshi.buwan.service.imp.juhe.FunTVService;
import com.yeshi.buwan.util.BeanUtil;
import com.yeshi.buwan.util.CacheUtil;
import com.yeshi.buwan.util.HttpUtil;
@@ -36,6 +37,8 @@
    private VideoFunTVDao videoFunTVDao;
    @Resource
    private VideoFunTVNewDao videoFunTVNewDao;
    @Resource
    private FunTVService funTVService;
    @org.junit.Test
    public void test1() {
@@ -79,8 +82,7 @@
    @org.junit.Test
    public void test6() {
        FunTVUtil futil = BeanUtil.getBean(FunTVUtil.class);
        futil.startParseAll();
        funTVUtil.startParseAll();
    }
    @org.junit.Test
@@ -88,7 +90,7 @@
        VideoDetailUtil videoDeailUtil = BeanUtil.getBean(VideoDetailUtil.class);
        VideoResourceUtil videoResouceUtil = BeanUtil.getBean(VideoResourceUtil.class);
        List<Long> resourceList = videoResouceUtil.getAvailableResourceIds("android", Integer.parseInt("48"));
        VideoInfo info = (videoDeailUtil.getVideoInfo(227562 + "", "19", resourceList,
        VideoInfo info = (videoDeailUtil.getVideoInfo(null,227562 + "", "19", resourceList,
                CacheUtil.getMD5Long(resourceList)));
        System.out.println(info);
    }
@@ -110,11 +112,16 @@
    @Test
    public void syncFuntvData() {
        List<VideoFunTV> list = videoFunTVDao.listAll(60000, 20000);
        List<VideoFunTV> list = videoFunTVDao.listAll(0, 20000);
        for (VideoFunTV video : list) {
            if (video.getId() == null)
                video.setId(video.createId());
            videoFunTVNewDao.save(video);
        }
    }
    @Test
    public void getVideoList(){
    }
}