|
@@ -18,10 +18,7 @@ import java.net.URLEncoder;
|
|
|
import java.nio.charset.StandardCharsets;
|
|
|
import java.security.MessageDigest;
|
|
|
import java.security.NoSuchAlgorithmException;
|
|
|
-import java.util.ArrayList;
|
|
|
-import java.util.List;
|
|
|
-import java.util.Random;
|
|
|
-import java.util.UUID;
|
|
|
+import java.util.*;
|
|
|
|
|
|
@Slf4j
|
|
|
@Service
|
|
@@ -46,7 +43,22 @@ public class CardServiceImpl implements CardService {
|
|
|
add("20250304073234245880032");
|
|
|
}};
|
|
|
|
|
|
- private static final List<String> useShareImgPathList = new ArrayList<String>() ;
|
|
|
+ private static final List<String> useShareImgPathList = new ArrayList<String>();
|
|
|
+
|
|
|
+ private static final List<String> useSmallPlayImgPathList = new ArrayList<String>() {{
|
|
|
+ add("生活情感叁读");
|
|
|
+ add("缘来养心厅");
|
|
|
+ add("心灵情感驿站");
|
|
|
+ add("生活良读");
|
|
|
+ add("祝福养心厅");
|
|
|
+ add("音药金曲厅");
|
|
|
+ add("音药养心馆");
|
|
|
+ add("农耕趣时刻");
|
|
|
+ add("趣史论");
|
|
|
+ add("妙招持家帮手");
|
|
|
+ add("多彩妙生活");
|
|
|
+ add("史记趣言");
|
|
|
+ }};
|
|
|
|
|
|
|
|
|
public JSONObject createGzhPath(String videoId, String sharedUid, String ghId, Integer miniProgramType) throws UnsupportedEncodingException {
|
|
@@ -129,8 +141,12 @@ public class CardServiceImpl implements CardService {
|
|
|
publishMiniprogram.setSource(videoDetail.getSource());
|
|
|
publishMiniprogram.setVideoTitle(videoDetail.getKimiTitle());
|
|
|
if (crawlerImgPathList.contains(planAccount.getPlanId())
|
|
|
- || useShareImgPathList.contains(planAccount.getAccountName())) {
|
|
|
+ || useShareImgPathList.contains(planAccount.getAccountName())
|
|
|
+ || useSmallPlayImgPathList.contains(planAccount.getAccountName())) {
|
|
|
publishMiniprogram.setVideoCover(videoDetail.getShareImgPath());
|
|
|
+ if (useSmallPlayImgPathList.contains(planAccount.getAccountName())) {
|
|
|
+ publishMiniprogram.setVideoCover(videoDetail.getSmallPlayImgPath());
|
|
|
+ }
|
|
|
if (crawlerImgPathList.contains(planAccount.getPlanId())) {
|
|
|
publishMiniprogram.setVideoCover(videoDetail.getRawImgPath());
|
|
|
}
|