sunshibo hai 1 semana
pai
achega
df0bf2cd9c
Modificáronse 1 ficheiros con 6 adicións e 7 borrados
  1. 6 7
      HBuilderProjects/shareCheckIn.html

+ 6 - 7
HBuilderProjects/shareCheckIn.html

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