From 675ed3a1ecd0ab5e9a9b7b3c5e34bd046dccfa2c Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Wed, 2 Nov 2022 21:26:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJyXunmi.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJyXunmi.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/SrcJyXunmi.js b/SrcJyXunmi.js index 2e2be391..d621d227 100644 --- a/SrcJyXunmi.js +++ b/SrcJyXunmi.js @@ -1174,26 +1174,27 @@ function xunmierji(type,ua) { //推送tvbox let push = { "name":MY_PARAMS.title||'聚影', - "pic":pic, + "pic":pic.replace('@referer=',''), "content":desc }; + let tvip = getItem('hikertvboxset', 'http://192.168.3.2:9978'); d.push({ title: '推送当前列表至TVBOX', - url: $("#noLoading#").lazyRule((push,list) => { + url: $("#noLoading#").lazyRule((push,list,tvip) => { let oneurl = list[0].split('$')[1]; if(/^http/.test(oneurl)){ push['url'] = list.join('#').replace(/\&/g, '&&'); - var state = request('http://192.168.3.2:9978' + '/action', { + var state = request(tvip + '/action', { headers: { 'Content-Type': 'application/x-www-form-urlencoded', //'X-Requested-With': 'XMLHttpRequest', - 'Referer': 'http://192.168.3.2:9978' + 'Referer': tvip }, timeout: 2000, body: 'do=push&url=' + JSON.stringify(push), method: 'POST' }); - log(push); + //log(push); //log(state); if (state == 'ok') { return 'toast://推送成功,如果tvbox显示“没找到数据”可能是该链接需要密码或者当前的jar不支持。'; @@ -1202,7 +1203,7 @@ function xunmierji(type,ua) { } } return 'toast://当前线路不支持推送选集列表'; - }, push, lists[parseInt(getMyVar(MY_URL, '0'))]), + }, push, lists[parseInt(getMyVar(MY_URL, '0'))], tvip), col_type: 'scroll_button' })