sunshibo 1 týždeň pred
rodič
commit
b16af4619a
1 zmenil súbory, kde vykonal 14 pridanie a 4 odobranie
  1. 14 4
      HBuilderProjects/shareCheckIn.html

+ 14 - 4
HBuilderProjects/shareCheckIn.html

@@ -2113,12 +2113,22 @@
 		function collectImageUrlsFromUrl() {
 			var urls = collectRawCheckInImageUrls();
 			var displayUrls = [];
+			var videoPosterAlerts = [];
 			urls.forEach(function (u) {
-				var display = isCheckInVideoUrl(u)
-					? resolveCheckInVideoPosterUrl(u)
-					: normalizeMediaUrl(u);
-				if (display) pushUniqueUrl(displayUrls, display);
+				if (isCheckInVideoUrl(u)) {
+					var display = resolveCheckInVideoPosterUrl(u);
+					if (display) {
+						videoPosterAlerts.push(display);
+						pushUniqueUrl(displayUrls, display);
+					}
+					return;
+				}
+				var displayImg = normalizeMediaUrl(u);
+				if (displayImg) pushUniqueUrl(displayUrls, displayImg);
 			});
+			if (videoPosterAlerts.length) {
+				alert('中间视频封面图 URL:\n' + videoPosterAlerts.join('\n'));
+			}
 			if (!displayUrls.length) {
 				pushUniqueUrl(displayUrls, CHECKIN_HERO_DEFAULT_MAP_SRC);
 			}