From fd1520952c180dc15ec28319dae93ed666c8943e Mon Sep 17 00:00:00 2001 From: litian <C21AF165> Date: 星期一, 15 四月 2024 16:14:49 +0800 Subject: [PATCH] ios --- packageBookService/pages/bookServices/examination/examination.js | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packageBookService/pages/bookServices/examination/examination.js b/packageBookService/pages/bookServices/examination/examination.js index acc8177..070b53f 100644 --- a/packageBookService/pages/bookServices/examination/examination.js +++ b/packageBookService/pages/bookServices/examination/examination.js @@ -202,14 +202,15 @@ // 姝e垯琛ㄨ揪寮忓尮閰�<source>鏍囩涓殑src灞炴�у�� var srcRegex = /<source\s+src="([^"]+)"/i; var srcTwo = /<audio\s+src="([^"]+)"/i; + // 鎵ц姝e垯鍖归厤 var match = srcRegex.exec(htmlString); const local = srcTwo.exec(htmlString) // 濡傛灉鍖归厤鎴愬姛锛岃繑鍥炵涓�涓崟鑾风粍鐨勫唴瀹癸紙src灞炴�х殑鍊硷級 if (match && match[1]) { - return match[1]; + return match[1].replace( '../file', app.config.requestCtx + '/file'); } else if (local && local[1]) { - return local[1] + return local[1].replace( '../file', app.config.requestCtx + '/file') } else { // 濡傛灉娌℃湁鍖归厤鍒帮紝杩斿洖null return null; -- Gitblit v1.9.1