From 95ddcb59ff8957bd6f0bfee34aeef0a6d1ef2862 Mon Sep 17 00:00:00 2001 From: yoimiya-kokomi <592981798@qq.com> Date: Sun, 29 May 2022 10:54:26 +0800 Subject: [PATCH] =?UTF-8?q?*=20=E5=A2=9E=E5=BC=BA=E4=BB=8E=E6=B4=BB?= =?UTF-8?q?=E5=8A=A8=E8=AF=A6=E6=83=85=E8=A7=A3=E6=9E=90=E6=97=A5=E6=9C=9F?= =?UTF-8?q?=E7=9A=84=E8=83=BD=E5=8A=9B=EF=BC=8C=E4=BD=BF=E4=B8=80=E4=BA=9B?= =?UTF-8?q?=E6=B4=BB=E5=8A=A8=E6=97=A5=E6=9C=9F=E6=9B=B4=E5=8A=A0=E5=87=86?= =?UTF-8?q?=E7=A1=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/Calendar.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/components/Calendar.js b/components/Calendar.js index f0d49969..c903b2f9 100644 --- a/components/Calendar.js +++ b/components/Calendar.js @@ -33,11 +33,14 @@ let Cal = { if (detailData && detailData.data && detailData.data.list) { let versionTime = {}; lodash.forEach(detailData.data.list, (ds) => { - let vRet = /(\d\.\d)版本更新时间/.exec(ds.title) + let vRet = /(\d\.\d)版本更新通知/.exec(ds.title) if (vRet && vRet[1]) { - let tRet = /([0-9\\/\\: ]){9,}/.exec(ds.content); - if (tRet && tRet[0]) { - versionTime[vRet[1]] = tRet[0].replace("06:00", "11:00"); + let content = /(?:更新时间)\s*〓([^〓]+)(?:〓|$)/.exec(ds.content); + if (content && content[1]) { + let tRet = /([0-9\\/\\: ]){9,}/.exec(content[1]); + if (tRet && tRet[0]) { + versionTime[vRet[1]] = tRet[0].replace("06:00", "11:00"); + } } } })