mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
fix: weibo timeline cache
This commit is contained in:
@@ -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}`);
|
||||
|
||||
Reference in New Issue
Block a user