|
@@ -40,6 +40,9 @@ public class CardServiceImpl implements CardService {
|
|
|
@ApolloJsonValue("${pageTestAccount:[]}")
|
|
@ApolloJsonValue("${pageTestAccount:[]}")
|
|
|
private JSONArray pageTestAccount;
|
|
private JSONArray pageTestAccount;
|
|
|
|
|
|
|
|
|
|
+ @ApolloJsonValue("${updateVideoMap:{}}")
|
|
|
|
|
+ private Map<String, String> updateVideoMap;
|
|
|
|
|
+
|
|
|
@Autowired
|
|
@Autowired
|
|
|
AigcService aigcService;
|
|
AigcService aigcService;
|
|
|
|
|
|
|
@@ -70,7 +73,7 @@ public class CardServiceImpl implements CardService {
|
|
|
private static final List<String> useSmallPlayImgPathList = new ArrayList<String>();
|
|
private static final List<String> useSmallPlayImgPathList = new ArrayList<String>();
|
|
|
|
|
|
|
|
|
|
|
|
|
- public JSONObject createGzhPath(String videoId, String sharedUid, String ghId, Integer miniProgramType) throws UnsupportedEncodingException {
|
|
|
|
|
|
|
+ public JSONObject createGzhPath(String videoId, String sharedUid, String ghId, Integer miniProgramType, Integer index) throws UnsupportedEncodingException {
|
|
|
String rootShareId = UUID.randomUUID().toString();
|
|
String rootShareId = UUID.randomUUID().toString();
|
|
|
String rootSourceId;
|
|
String rootSourceId;
|
|
|
switch (miniProgramType) {
|
|
switch (miniProgramType) {
|
|
@@ -104,6 +107,9 @@ public class CardServiceImpl implements CardService {
|
|
|
if (!CollectionUtils.isEmpty(pageTestAccount) && pageTestAccount.contains(ghId)) {
|
|
if (!CollectionUtils.isEmpty(pageTestAccount) && pageTestAccount.contains(ghId)) {
|
|
|
videoId = "0";
|
|
videoId = "0";
|
|
|
}
|
|
}
|
|
|
|
|
+ if(index == 1 && !updateVideoMap.isEmpty() && updateVideoMap.containsKey(ghId)){
|
|
|
|
|
+ videoId = updateVideoMap.get(ghId);
|
|
|
|
|
+ }
|
|
|
String url = String.format("pages/user-videos?id=%s&su=%s&fromGzh=1&rootShareId=%s&shareId=%s&rootSourceId=%s",
|
|
String url = String.format("pages/user-videos?id=%s&su=%s&fromGzh=1&rootShareId=%s&shareId=%s&rootSourceId=%s",
|
|
|
videoId, sharedUid, rootShareId, rootShareId, rootSourceId);
|
|
videoId, sharedUid, rootShareId, rootShareId, rootSourceId);
|
|
|
String productionPath = String.format("pages/category?jumpPage=%s", URLEncoder.encode(url, StandardCharsets.UTF_8.toString()));
|
|
String productionPath = String.format("pages/category?jumpPage=%s", URLEncoder.encode(url, StandardCharsets.UTF_8.toString()));
|
|
@@ -146,7 +152,7 @@ public class CardServiceImpl implements CardService {
|
|
|
|
|
|
|
|
String videoId = videoDetail.getVideoId();
|
|
String videoId = videoDetail.getVideoId();
|
|
|
String uid = videoDetail.getUid();
|
|
String uid = videoDetail.getUid();
|
|
|
- JSONObject jsonObject = createGzhPath(videoId, uid, planAccount.getGhId(), planAccount.getMiniprogramUseType());
|
|
|
|
|
|
|
+ JSONObject jsonObject = createGzhPath(videoId, uid, planAccount.getGhId(), planAccount.getMiniprogramUseType(), index);
|
|
|
|
|
|
|
|
PublishMiniprogram publishMiniprogram = new PublishMiniprogram();
|
|
PublishMiniprogram publishMiniprogram = new PublishMiniprogram();
|
|
|
publishMiniprogram.setContentId(publishContent.getId());
|
|
publishMiniprogram.setContentId(publishContent.getId());
|