From bb79aec105fdccdd57b9ce30b010416f1d817c84 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Fri, 31 May 2024 10:08:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJyData.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJyData.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/SrcJyData.js b/SrcJyData.js index 076bc961..9b957797 100644 --- a/SrcJyData.js +++ b/SrcJyData.js @@ -62,7 +62,7 @@ function getYiData(jkdata) { let host = extdata["host"] || ''; classurl = host; listurl = classurl + extdata["url"]; - vodurlhead = getHome(listurl); + vodurlhead = getHome(listurl)+(extdata["detailUrl"]||""); } } else { log('api类型错误') @@ -528,8 +528,9 @@ function getYiData(jkdata) { pic = getJsonValue(it, dws[2]); note = getJsonValue(it, dws[3]); id = getJsonValue(it, dws[4]); + let vodUrl = /fyid/.test(vodurlhead)?vodurlhead.replace('fyid',id):vodurlhead+id; if(id&&name){ - lists.push({"vod_id":id,"vod_name":name,"vod_remarks":note||"","vod_pic":pic||""}); + lists.push({"vod_id":vodUrl,"vod_name":name,"vod_remarks":note||"","vod_pic":pic||""}); } }) }else{ @@ -548,7 +549,8 @@ function getYiData(jkdata) { note = _pdfh(it, dws[3]); } if(id&&name){ - lists.push({"vod_id":id,"vod_name":name,"vod_remarks":note||"","vod_pic":pic||""}); + let vodUrl = /fyid/.test(vodurlhead)?vodurlhead.replace('fyid',id):vodurlhead+id; + lists.push({"vod_id":vodUrl,"vod_name":name,"vod_remarks":note||"","vod_pic":pic||""}); } }) }