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