🎈 perf: 优化竹白优先展示最新

This commit is contained in:
zhiyu1998 2023-04-14 11:11:31 +08:00
parent 1148d24ef5
commit e075b86d18

View File

@ -394,7 +394,9 @@ export class query extends plugin {
)
.then(async resp => {
const res = resp.data.data;
const content = await res.map(item => {
const content = res
.sort((a, b) => b.luSort - a.luSort)
.map(item => {
const { pn, pa, zn, lu, pu, pq, aa, hl } = item;
const template = `标题:${pn}\n${pa}\n期刊:${zn}\n发布日期距今:${lu}\n链接1${pu}\n链接2${pq}\n\n 大致描述:${hl
.join("\n")