From c1a2bd3477fcc23c4ee13bb2df7fb76310d78da4 Mon Sep 17 00:00:00 2001 From: kola-web Date: Sat, 21 Dec 2024 09:49:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=98=AF=E5=90=A6=E5=8A=A0=E5=AF=86=E6=8E=A7?= =?UTF-8?q?=E5=88=B6=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/article/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/article/index.ts b/src/pages/article/index.ts index e1d0a33..d6c405e 100644 --- a/src/pages/article/index.ts +++ b/src/pages/article/index.ts @@ -68,7 +68,9 @@ Page({ showMsg: false, }) .then((res) => { - res.chapter.Content = decryptData(res.chapter.Content); + if (res.chapter.content_encrypt === 1) { + res.chapter.Content = decryptData(res.chapter.Content); + } this.setData({ book: { ...res.book,