yumeng пре 5 година
родитељ
комит
cd722f9af6

+ 1 - 1
jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/controller/TestController.java

@@ -133,7 +133,7 @@ public class TestController {
                         //  kuaishouInterfaceService.getCreativeList(token, null, null);
                         kuaishouInterfaceService.getVideoList2(token, null, null,1);
                         //3: 获取图片信息数据
-                        kuaishouInterfaceService.getImageList(token, null, null);
+                        kuaishouInterfaceService.getImageList2(token, null, null,1);
                         Thread.sleep(1 * 1000);
                     } catch (Exception e) {
                         e.printStackTrace();

+ 3 - 3
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/batch/service/impl/KuaishouInterfaceServiceImpl.java

@@ -316,10 +316,10 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
                     kuaiShouVideoGet.setMaterialType(type);
                 }
 
-           //     kuaiShouVideoGetService.saveOrUpdate(kuaiShouVideoGet);
+                //     kuaiShouVideoGetService.saveOrUpdate(kuaiShouVideoGet);
                 videoGets.add(kuaiShouVideoGet);
             }
-           kuaiShouVideoGetService.replaceBatch(videoGets);
+            kuaiShouVideoGetService.replaceBatch(videoGets);
             getVideoListByPage(token, startDate, endDate, page + 1);
 
         } catch (Exception e) {
@@ -3185,6 +3185,7 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
             String result = HttpUtils.httpPostRequest(url, param, headers);
 
             JSONObject resultJson = JSONObject.parseObject(result);
+            log.info("返回信息:{}", resultJson);
             Integer code = resultJson.getInteger("code");
             String message = resultJson.getString("message");
             if (null == code || code != 0) {
@@ -3215,7 +3216,6 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
                 if (!Check.isNull(type)) {
                     kuaiShouImageGet.setMaterialType(type);
                 }
-
                 kuaiShouImageGet.setCreateTime(new Date());
                 kuaiShouImageGet.setUpdateTime(new Date());
                 kuaiShouImageGetService.saveOrUpdate(kuaiShouImageGet);