mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-10 11:28:59 +08:00
chore: 调整部分日志
This commit is contained in:
parent
25ec219659
commit
336ddd6706
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "sub-store",
|
"name": "sub-store",
|
||||||
"version": "2.14.43",
|
"version": "2.14.44",
|
||||||
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
|
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
|
||||||
"main": "src/main.js",
|
"main": "src/main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -215,7 +215,6 @@ function URI_VMess() {
|
|||||||
// V2rayN URI format
|
// V2rayN URI format
|
||||||
params = JSON.parse(content);
|
params = JSON.parse(content);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
// console.error(e);
|
|
||||||
// Shadowrocket URI format
|
// Shadowrocket URI format
|
||||||
// eslint-disable-next-line no-unused-vars
|
// eslint-disable-next-line no-unused-vars
|
||||||
let [__, base64Line, qs] = /(^[^?]+?)\/?\?(.*)$/.exec(line);
|
let [__, base64Line, qs] = /(^[^?]+?)\/?\?(.*)$/.exec(line);
|
||||||
|
@ -411,7 +411,6 @@ const DOMAIN_RESOLVERS = {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
const answers = resp.body.split(';').map((i) => i.split(',')[0]);
|
const answers = resp.body.split(';').map((i) => i.split(',')[0]);
|
||||||
console.log(`answers`, answers);
|
|
||||||
if (answers.length === 0) {
|
if (answers.length === 0) {
|
||||||
throw new Error('No answers');
|
throw new Error('No answers');
|
||||||
}
|
}
|
||||||
|
@ -47,7 +47,7 @@ function AllRuleParser() {
|
|||||||
}
|
}
|
||||||
if (!matched) throw new Error('Invalid rule type: ' + rawType);
|
if (!matched) throw new Error('Invalid rule type: ' + rawType);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(`Failed to parse line: ${line}\n Reason: ${e}`);
|
console.log(`Failed to parse line: ${line}\n Reason: ${e}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
@ -125,8 +125,9 @@ async function gistBackup(req, res) {
|
|||||||
$.cache = content;
|
$.cache = content;
|
||||||
$.persistCache();
|
$.persistCache();
|
||||||
}
|
}
|
||||||
// perform migration after restoring from gist
|
$.info(`perform migration after restoring from gist...`);
|
||||||
migrate();
|
migrate();
|
||||||
|
$.info(`migration completed`);
|
||||||
$.info(`还原备份完成`);
|
$.info(`还原备份完成`);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -44,8 +44,12 @@ export async function updateGitHubAvatar() {
|
|||||||
.then((resp) => JSON.parse(resp.body));
|
.then((resp) => JSON.parse(resp.body));
|
||||||
settings.avatarUrl = data['avatar_url'];
|
settings.avatarUrl = data['avatar_url'];
|
||||||
$.write(settings, SETTINGS_KEY);
|
$.write(settings, SETTINGS_KEY);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
$.error('Failed to fetch GitHub avatar for User: ' + username);
|
$.error(
|
||||||
|
`Failed to fetch GitHub avatar for User: ${username}. Reason: ${
|
||||||
|
err.message ?? err
|
||||||
|
}`,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -67,7 +71,11 @@ export async function updateArtifactStore() {
|
|||||||
$.write(settings, SETTINGS_KEY);
|
$.write(settings, SETTINGS_KEY);
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
$.error('Failed to fetch artifact store for User: ' + githubUser);
|
$.error(
|
||||||
|
`Failed to fetch artifact store for User: ${githubUser}. Reason: ${
|
||||||
|
err.message ?? err
|
||||||
|
}`,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user