sunshibo 1 неделя назад
Родитель
Сommit
df0bf2cd9c
1 измененных файлов с 6 добавлено и 7 удалено
  1. 6 7
      HBuilderProjects/shareCheckIn.html

+ 6 - 7
HBuilderProjects/shareCheckIn.html

@@ -2113,21 +2113,20 @@
 		function collectImageUrlsFromUrl() {
 		function collectImageUrlsFromUrl() {
 			var urls = collectRawCheckInImageUrls();
 			var urls = collectRawCheckInImageUrls();
 			var displayUrls = [];
 			var displayUrls = [];
-			var videoPosterAlerts = [];
+			var videoUrlAlerts = [];
 			urls.forEach(function (u) {
 			urls.forEach(function (u) {
 				if (isCheckInVideoUrl(u)) {
 				if (isCheckInVideoUrl(u)) {
+					var videoUrl = normalizeMediaUrl(u);
+					if (videoUrl) videoUrlAlerts.push(videoUrl);
 					var display = resolveCheckInVideoPosterUrl(u);
 					var display = resolveCheckInVideoPosterUrl(u);
-					if (display) {
-						videoPosterAlerts.push(display);
-						pushUniqueUrl(displayUrls, display);
-					}
+					if (display) pushUniqueUrl(displayUrls, display);
 					return;
 					return;
 				}
 				}
 				var displayImg = normalizeMediaUrl(u);
 				var displayImg = normalizeMediaUrl(u);
 				if (displayImg) pushUniqueUrl(displayUrls, displayImg);
 				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) {
 			if (!displayUrls.length) {
 				pushUniqueUrl(displayUrls, CHECKIN_HERO_DEFAULT_MAP_SRC);
 				pushUniqueUrl(displayUrls, CHECKIN_HERO_DEFAULT_MAP_SRC);