|
@@ -158,8 +158,8 @@ public class OceanengineJob implements Job {
|
|
|
// douyinHotService.replaceBatch(list);
|
|
|
for (DouyinHot douyinHot : list){
|
|
|
douyinHot.setUrl(getRealVideoUrl("https://aweme.snssdk.com/aweme/v1/playwm/?video_id="+douyinHot.getVideoId()+"&line=0"));
|
|
|
- if(douyinHot.getVideoId() == null){
|
|
|
- douyinHot.setVideoId(getVideoUrl(douyinHot.getVideoId()));
|
|
|
+ if(douyinHot.getUrl() == null){
|
|
|
+ douyinHot.setUrl(getVideoUrl(douyinHot.getVideoId()));
|
|
|
}
|
|
|
douyinHotService.saveOrUpdate(douyinHot);
|
|
|
}
|