update ua

This commit is contained in:
any
2020-12-12 00:34:59 +08:00
parent 9542398d89
commit 948af669ad
2 changed files with 7 additions and 2 deletions

View File

@ -105,7 +105,9 @@ async function jdBeanHome() {
function getAuthorShareCode() {
return new Promise(resolve => {
$.get({url: "https://gitee.com/shylocks/updateTeam/raw/main/jd_bean_home"}, async (err, resp, data) => {
$.get({url: "https://gitee.com/shylocks/updateTeam/raw/main/jd_bean_home",headers:{
"User-Agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1 Edg/87.0.4280.88"
}}, async (err, resp, data) => {
try {
if (err) {
} else {

View File

@ -1196,7 +1196,10 @@ function updateTuanIds(url = 'https://raw.githubusercontent.com/lxk0301/updateTe
}
function updateTuanIdsCDN(url = 'https://raw.fastgit.org/lxk0301/updateTeam/master/jd_updateFactoryTuanId.json') {
return new Promise(async resolve => {
$.get({url}, (err, resp, data) => {
$.get({url,
headers:{
"User-Agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1 Edg/87.0.4280.88"
}}, (err, resp, data) => {
try {
if (err) {
console.log(`${JSON.stringify(err)}`)