diff --git a/lib/routes/weibo/timeline.js b/lib/routes/weibo/timeline.js index c716232837..ca2e6c34bd 100644 --- a/lib/routes/weibo/timeline.js +++ b/lib/routes/weibo/timeline.js @@ -4,7 +4,7 @@ const config = require('@/config').value; module.exports = async (ctx) => { const uid = ctx.params.uid; const feature = ctx.params.feature || 0; - const token = ctx.cache.get('weibotimelineuid' + uid); + const token = await ctx.cache.get('weibotimelineuid' + uid); if (token) { const response = await got.get(`https://api.weibo.com/2/statuses/home_timeline.json?access_token=${token}&count=100&feature=${feature}`);