mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-10 15:21:59 +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) {
|
if (item.id !== undefined) {
|
||||||
const value = ctx.cache.get(item.id);
|
const value = ctx.cache.get(item.id);
|
||||||
if (value) {
|
if (value) {
|
||||||
single.description = JSON.parse(value);
|
single.description = value;
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
const article_response = await got({
|
const article_response = await got({
|
||||||
@@ -67,7 +67,7 @@ module.exports = async (ctx) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
single.description = article_response.data.data.article_content;
|
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) {
|
} catch (err) {
|
||||||
single.description = description;
|
single.description = description;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ module.exports = async (ctx) => {
|
|||||||
if (item.id !== undefined) {
|
if (item.id !== undefined) {
|
||||||
const value = ctx.cache.get(item.id);
|
const value = ctx.cache.get(item.id);
|
||||||
if (value) {
|
if (value) {
|
||||||
single.description = JSON.parse(value);
|
single.description = value;
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
const article_response = await got({
|
const article_response = await got({
|
||||||
@@ -67,7 +67,7 @@ module.exports = async (ctx) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
single.description = article_response.data.data.article_content;
|
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) {
|
} catch (err) {
|
||||||
single.description = description;
|
single.description = description;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user