|
@@ -5,8 +5,6 @@ import cn.com.ctop.common.module.entity.CtopOauthToken;
|
|
import cn.com.ctop.common.module.service.IBindAccountLoginService;
|
|
import cn.com.ctop.common.module.service.IBindAccountLoginService;
|
|
import cn.com.ctop.common.module.service.ICtopOauthTokenService;
|
|
import cn.com.ctop.common.module.service.ICtopOauthTokenService;
|
|
import cn.com.ctop.common.module.utils.CtopAdConstant;
|
|
import cn.com.ctop.common.module.utils.CtopAdConstant;
|
|
-import cn.com.ctop.crawler.modules.oceanengine.entity.HotMaterial;
|
|
|
|
-import cn.com.ctop.crawler.modules.oceanengine.service.IHotMaterialService;
|
|
|
|
import cn.com.ctop.crawler.modules.oceanengine.service.IOceanEngineService;
|
|
import cn.com.ctop.crawler.modules.oceanengine.service.IOceanEngineService;
|
|
import cn.com.ctop.kuaishou.modules.graphql.service.IKuaishouWebInterfaceService;
|
|
import cn.com.ctop.kuaishou.modules.graphql.service.IKuaishouWebInterfaceService;
|
|
import cn.com.ctop.toutiao.modules.report.service.IBytedanceFundDailyService;
|
|
import cn.com.ctop.toutiao.modules.report.service.IBytedanceFundDailyService;
|
|
@@ -31,21 +29,6 @@ import java.util.concurrent.Executors;
|
|
public class SampleTest {
|
|
public class SampleTest {
|
|
@Autowired
|
|
@Autowired
|
|
private IOceanEngineService oceanEngineService;
|
|
private IOceanEngineService oceanEngineService;
|
|
- @Autowired
|
|
|
|
- private IHotMaterialService hotMaterialService;
|
|
|
|
- @Test
|
|
|
|
- public void initImageUrl(){
|
|
|
|
- List<HotMaterial> hotMaterials = hotMaterialService.getId();
|
|
|
|
- if(null!=hotMaterials&&!hotMaterials.isEmpty()){
|
|
|
|
- hotMaterials.forEach(douyinHot -> {
|
|
|
|
- HotMaterial getHot = hotMaterialService.getById(douyinHot.getId());
|
|
|
|
-// String image = getHot.getCoverImage().replace("data:image/jpg;base64,", "");
|
|
|
|
- String destPath = "D:\\data\\effectCase\\";
|
|
|
|
- String fileName = getHot.getId()+".jpg";
|
|
|
|
-// EffectCase.base64ToFile(destPath,image,fileName);
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
@Test
|
|
@Test
|
|
public void testOceanEngineJob(){
|
|
public void testOceanEngineJob(){
|
|
String account="3248395570@qq.com";
|
|
String account="3248395570@qq.com";
|