Forráskód Böngészése

修改获取卡片

xueyiming 3 hónapja
szülő
commit
881e512b8a

+ 1 - 1
long-article-recommend-service/src/main/java/com/tzld/longarticle/recommend/server/service/video/impl/CardGeneratorServiceImpl.java

@@ -29,7 +29,7 @@ public class CardGeneratorServiceImpl implements CardGeneratorService {
         JSONArray newItemList = new JSONArray();
         for (int i = 0; i < jsonArray.size(); i++) {
             JSONObject item = jsonArray.getJSONObject(i);
-            JSONObject card = generateSingleCard(i, ghId, 25, item, miniprogramUseType);
+            JSONObject card = generateSingleCard(i + 1, ghId, 25, item, miniprogramUseType);
             cardList.add(card);
             newItemList.add(item);
         }

+ 1 - 1
long-article-recommend-service/src/main/java/com/tzld/longarticle/recommend/server/web/video/MatchVideoController.java

@@ -37,7 +37,7 @@ public class MatchVideoController {
         return matchVideoService.getOffVideos(getOffVideosParam);
     }
 
-    @PostMapping("/recallideos")
+    @PostMapping("/recallVideos")
     public JSONObject recallVideos(@RequestBody RecallVideosParam recallVideosParam) {
         return matchVideoService.recallVideos(recallVideosParam);
     }