mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-09 06:30:40 +08:00
Revert "fix: geektime description is [Object object] " (#2603)
This reverts commit 6d1b4870e5.
This commit is contained in:
@@ -50,7 +50,7 @@ module.exports = async (ctx) => {
|
||||
if (item.id !== undefined) {
|
||||
const value = ctx.cache.get(item.id);
|
||||
if (value) {
|
||||
single.description = JSON.parse(value);
|
||||
single.description = value;
|
||||
} else {
|
||||
try {
|
||||
const article_response = await got({
|
||||
@@ -67,7 +67,7 @@ module.exports = async (ctx) => {
|
||||
});
|
||||
|
||||
single.description = article_response.data.data.article_content;
|
||||
ctx.cache.set(item.id, JSON.stringify(single.description));
|
||||
ctx.cache.set(item.id, single.description);
|
||||
} catch (err) {
|
||||
single.description = description;
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ module.exports = async (ctx) => {
|
||||
if (item.id !== undefined) {
|
||||
const value = ctx.cache.get(item.id);
|
||||
if (value) {
|
||||
single.description = JSON.parse(value);
|
||||
single.description = value;
|
||||
} else {
|
||||
try {
|
||||
const article_response = await got({
|
||||
@@ -67,7 +67,7 @@ module.exports = async (ctx) => {
|
||||
});
|
||||
|
||||
single.description = article_response.data.data.article_content;
|
||||
ctx.cache.set(item.id, JSON.stringify(single.description));
|
||||
ctx.cache.set(item.id, single.description);
|
||||
} catch (err) {
|
||||
single.description = description;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user