diff --git a/lib/v2/douban/other/recommended.js b/lib/v2/douban/other/recommended.js index 7d0397de3..e8ef689ac 100644 --- a/lib/v2/douban/other/recommended.js +++ b/lib/v2/douban/other/recommended.js @@ -18,7 +18,9 @@ module.exports = async (ctx) => { const date = new Date(); const year = date.getFullYear(); - const mon = date.getMonth() + 1; + const month = date.getMonth() + 1; + const mon = month < 10 ? '0' + month : month.toString(); + let items = response.data.data[0].items; const subjectCollectionId = items.find((item) => item.title.startsWith(`${year}年${mon}月`)).id;