style: auto format

This commit is contained in:
github-actions[bot] 2024-01-18 12:45:55 +00:00
parent 6d901cb7dc
commit 52ee219378
3 changed files with 24 additions and 27 deletions

View File

@ -62,13 +62,13 @@
"unicorn/numeric-separators-style": [
"warn",
{
"onlyIfContainsSeparator": false,
"number": { "minimumDigits": 7, "groupLength": 3 },
"binary": { "minimumDigits": 9, "groupLength": 4 },
"octal": { "minimumDigits": 9, "groupLength": 4 },
"hexadecimal": { "minimumDigits": 5, "groupLength": 2 }
"onlyIfContainsSeparator": false,
"number": { "minimumDigits": 7, "groupLength": 3 },
"binary": { "minimumDigits": 9, "groupLength": 4 },
"octal": { "minimumDigits": 9, "groupLength": 4 },
"hexadecimal": { "minimumDigits": 5, "groupLength": 2 }
}
],
],
"unicorn/prefer-code-point": 1,
"unicorn/prefer-logical-operator-over-ternary": 1,
"unicorn/prefer-module": 0,

View File

@ -1,27 +1,24 @@
const got = require('@/utils/got');
module.exports = async (ctx) => {
const data = (
await got({
method: 'post',
url: 'https://app-api.shop.ele.me/arena/invoke/?method=NoticeKeeperService.getBroadcastList',
json: {
id: '5CC2B32FA6F24CF78CB300DDE2F370BE|1565511577423',
metas: {
appName: 'Odin',
appVersion: '4.4.0',
},
service: 'NoticeKeeperService',
method: 'getBroadcastList',
params: {
offset: 0,
limit: 999,
},
ncp: '2.0.0',
const { data } = await got({
method: 'post',
url: 'https://app-api.shop.ele.me/arena/invoke/?method=NoticeKeeperService.getBroadcastList',
json: {
id: '5CC2B32FA6F24CF78CB300DDE2F370BE|1565511577423',
metas: {
appName: 'Odin',
appVersion: '4.4.0',
},
})
).data;
service: 'NoticeKeeperService',
method: 'getBroadcastList',
params: {
offset: 0,
limit: 999,
},
ncp: '2.0.0',
},
});
ctx.state.data = {
title: '饿了么商家开放平台-公告',
link: 'https://open.shop.ele.me/openapi/publicnotice/0',

View File

@ -4,7 +4,7 @@ const { RequestInProgressError } = require('@/errors');
module.exports = async (ctx) => {
const { id, lang } = ctx.params;
let data = (await got.get(`https://api.mangadex.org/manga/${id}`)).data;
let { data } = await got.get(`https://api.mangadex.org/manga/${id}`);
if (data.result === 'error') {
throw new RequestInProgressError(data.errors[0].detail);
}