diff --git a/SrcJyPublic.js b/SrcJyPublic.js index 2c6d29bd..59f351ee 100644 --- a/SrcJyPublic.js +++ b/SrcJyPublic.js @@ -339,13 +339,17 @@ function getContnet(url) { let proxys = $.require('ghproxy').getproxy(); shuffleArray(proxys); for(let i=0;i') && !content.startsWith('') && !/502 Bad Gateway/.test(content)) { return content; } } } - return fetch(url, {timeout:20000}); + let headers = { 'User-Agent': MOBILE_UA }; + if(!url.endsWith('.json')){ + headers['User-Agent'] = 'okhttp/4.12.0'; + } + return fetch(url, {headers: headers, timeout:20000}); } //获取分组接口列表 function getGroupLists(datas, k) {