Prechádzať zdrojové kódy

添加脚本库代码

syh 5 rokov pred
rodič
commit
de69510d9d

+ 2 - 2
jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/job/KuaishouCrawlerJob.java

@@ -24,7 +24,7 @@ public class KuaishouCrawlerJob implements Job {
     public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
         try {
             Integer page = 1;
-            QueryWrapper<KuaishouAppAccount> queryWrapper = new QueryWrapper<KuaishouAppAccount>();
+            QueryWrapper<KuaishouAppAccount> queryWrapper = new QueryWrapper<>();
             queryWrapper.eq("path","/rest/n/feed/hot");
             List<KuaishouAppAccount> list = kuaishouAppAccountService.list(queryWrapper);
             if (list != null) {
@@ -37,7 +37,7 @@ public class KuaishouCrawlerJob implements Job {
                 }
             }
 
-            QueryWrapper<KuaishouIosAccount> queryWrapper2 = new QueryWrapper<KuaishouIosAccount>();
+            QueryWrapper<KuaishouIosAccount> queryWrapper2 = new QueryWrapper<>();
             queryWrapper2.eq("path","/rest/n/feed/hot");
             List<KuaishouIosAccount> list2 = kuaishouIosAccountService.list(queryWrapper2);
             if (list2 != null) {

+ 2 - 2
jeecg-boot-module-system/src/main/resources/application-prod.yml

@@ -136,8 +136,8 @@ mybatis-plus:
       id-type: 4
       # 默认数据库表下划线命名
       table-underline: true
-  configuration:
-    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
+#  configuration:
+#    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
 #jeecg专用配置
 jeecg:
   ffmpeg:

+ 0 - 17
jeecg-boot-module-system/src/test/java/org/jeecg/SampleTest.java

@@ -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.ICtopOauthTokenService;
 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.kuaishou.modules.graphql.service.IKuaishouWebInterfaceService;
 import cn.com.ctop.toutiao.modules.report.service.IBytedanceFundDailyService;
@@ -31,21 +29,6 @@ import java.util.concurrent.Executors;
 public class SampleTest {
     @Autowired
     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
     public void testOceanEngineJob(){
         String account="3248395570@qq.com";

+ 2 - 0
module-common/src/main/java/cn/com/ctop/common/module/service/IUserAllocationService.java

@@ -1,9 +1,11 @@
 package cn.com.ctop.common.module.service;
 
 import cn.com.ctop.common.module.entity.UserAllocation;
+import com.alibaba.fastjson.JSONObject;
 import com.baomidou.mybatisplus.extension.service.IService;
 
 import java.util.List;
+import java.util.Map;
 
 /**
  * @Description: 用户分配

+ 5 - 6
module-crawler/src/main/java/cn/com/ctop/crawler/modules/core/service/IKuaishouCrawlerService.java

@@ -5,10 +5,9 @@ import cn.com.ctop.crawler.modules.account.entity.KuaishouAppAccount;
 import cn.com.ctop.crawler.modules.account.entity.KuaishouIosAccount;
 
 public interface IKuaishouCrawlerService {
-    public String getVideoFeeds(KuaishouAppAccount kuaishouAppAccount,Integer page);
-    public String getVideoFeeds(KuaishouIosAccount kuaishouIosAccount);
-    public String getAdAccountVideoFeeds(KuaishouAdAccount kuaishouAdAccount,String pcursor);
-    public String getAdFeeds();
-
-    public String getUserProfile(Long userId);
+    String getVideoFeeds(KuaishouAppAccount kuaishouAppAccount,Integer page);
+    String getVideoFeeds(KuaishouIosAccount kuaishouIosAccount);
+    String getAdAccountVideoFeeds(KuaishouAdAccount kuaishouAdAccount,String pcursor);
+    String getAdFeeds();
+    String getUserProfile(Long userId);
 }

+ 3 - 3
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/app/service/IKuaishouAppService.java

@@ -5,7 +5,7 @@ import cn.com.ctop.crawler.modules.account.entity.KuaishouAppAccount;
 import cn.com.ctop.crawler.modules.account.entity.KuaishouIosAccount;
 
 public interface IKuaishouAppService {
-    public void adFetch(KuaishouAppAccount kuaishouAppAccount,Integer page);
-    public void adFetch(KuaishouIosAccount kuaishouIosAccount);
-    public void adAccountFetch(KuaishouAdAccount kuaishouAdAccount,String pcursor);
+     void adFetch(KuaishouAppAccount kuaishouAppAccount,Integer page);
+     void adFetch(KuaishouIosAccount kuaishouIosAccount);
+     void adAccountFetch(KuaishouAdAccount kuaishouAdAccount,String pcursor);
 }