|
@@ -3189,6 +3189,7 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
|
|
|
*/
|
|
|
@Autowired
|
|
|
private IKuaiShouVideoGetService videoGetService;
|
|
|
+ static ExecutorService suZhaoService = Executors.newFixedThreadPool(15);
|
|
|
|
|
|
@Override
|
|
|
public void getSuZaoList(String token, Long accountId, int page, String startDate, String endDate) {
|
|
@@ -3253,13 +3254,15 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
|
|
|
kuaiShouVideoGet.setMaterialType(type);
|
|
|
}
|
|
|
kuaiShouVideoGetService.saveOrUpdate(kuaiShouVideoGet);
|
|
|
- Thread thread = new Thread() {
|
|
|
+ suZhaoService.submit(new Runnable() {
|
|
|
@Override
|
|
|
public void run() {
|
|
|
videoGetService.getKeyFrame(token, accountId, md5, String.valueOf(photo_id));
|
|
|
+
|
|
|
}
|
|
|
- };
|
|
|
- thread.start();
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
|