From ea5e451b30836b53c99ec41f9d72ce166cb58753 Mon Sep 17 00:00:00 2001 From: echo <109016927+zlh-debug@users.noreply.github.com> Date: Sun, 28 May 2023 04:52:44 +0800 Subject: [PATCH] #101 (#142) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: #101 * 修复祈愿分析链接错误问题 --- plugins/genshin/model/gachaLog.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/genshin/model/gachaLog.js b/plugins/genshin/model/gachaLog.js index c64e4a6..bc40136 100644 --- a/plugins/genshin/model/gachaLog.js +++ b/plugins/genshin/model/gachaLog.js @@ -82,7 +82,8 @@ export default class GachaLog extends base { dealUrl(url) { // timestamp=1641338980〈=zh-cn 修复链接有奇怪符号 - url = url.replace(/〈=/g, '&').split('getGachaLog?')[1] + url = url.replace(/〈=/g, '&') + if (url.includes("getGachaLog?")) url = url.split('getGachaLog?')[1] // 处理参数 let arr = new URLSearchParams(url).entries()