完善扑飞
This commit is contained in:
parent
66479a5d35
commit
bb1a40c1a9
@ -26,7 +26,7 @@ let getscript = async (url) => {
|
|||||||
baseurl = ret_classurl
|
baseurl = ret_classurl
|
||||||
|
|
||||||
}
|
}
|
||||||
if(href && href.search('global.js') != -1){
|
if(href && href.search('view.js') != -1){
|
||||||
// console.log(href)
|
// console.log(href)
|
||||||
scrurl = href
|
scrurl = href
|
||||||
|
|
||||||
@ -35,13 +35,14 @@ let getscript = async (url) => {
|
|||||||
await axios({url : mainurl + scrurl,responseType: 'arraybuffer'}).then((res)=>{
|
await axios({url : mainurl + scrurl,responseType: 'arraybuffer'}).then((res)=>{
|
||||||
// text = res.text
|
// text = res.text
|
||||||
let scr = iconv.decode(res.data, 'gbk');
|
let scr = iconv.decode(res.data, 'gbk');
|
||||||
scr=scr.substring(scr.indexOf("//服务器切换") + 1,scr.indexOf("//屏蔽js错误"))
|
scr=scr.substring(scr.indexOf("//分割获取id"),scr.indexOf("console.log(mh[4]);"))
|
||||||
scr=scr.substring(scr.indexOf("current_img_base = photosr[page];") + 33,scr.indexOf("if (current_img_base.indexOf('http://') != -1 ) {"))
|
// scr=scr.substring(scr.indexOf("current_img_base = photosr[page];") + 33,scr.indexOf("if (current_img_base.indexOf('http://') != -1 ) {"))
|
||||||
let WebimgServer = []
|
// let WebimgServer = []
|
||||||
let WebimgServerURL = []
|
// let WebimgServerURL = []
|
||||||
|
console.log(scr)
|
||||||
eval(scr)
|
eval(scr)
|
||||||
// console.log(WebimgServerURL)
|
console.log(imgserver)
|
||||||
scrurl = WebimgServerURL[0]
|
scrurl = imgserver
|
||||||
// text = res.data
|
// text = res.data
|
||||||
})
|
})
|
||||||
for(let i in imglist){
|
for(let i in imglist){
|
||||||
|
Loading…
Reference in New Issue
Block a user