From ce345fa8919a8c1dcf2d0a34659f39630d88aa7c Mon Sep 17 00:00:00 2001 From: Cloud Date: Sat, 3 Aug 2019 14:03:22 +0800 Subject: [PATCH] fix: nga (#2758) --- lib/routes/nga/forum.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes/nga/forum.js b/lib/routes/nga/forum.js index bf50f12c4b..abc5daf202 100644 --- a/lib/routes/nga/forum.js +++ b/lib/routes/nga/forum.js @@ -46,7 +46,7 @@ module.exports = async (ctx) => { }, }); - return formatContent(response.data.result[0].content); + return response.data.code === 0 ? formatContent(response.data.result[0].content) : response.data.msg; }); item.description = description;