From 65238a97d6f2e0fa89c30e596f14f77f5b98431f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Fri, 7 May 2021 10:22:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=A7=A3=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/js/app.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index ea8adad..07e8155 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "io.yutent.gaystat", - "version": "2.1.2", + "version": "2.1.3", "description": "搞基数据", "main": "src/main.js", "scripts": { diff --git a/src/js/app.js b/src/js/app.js index 9eff464..35653d4 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -28,6 +28,10 @@ function getJsonp(str) { } function getLineStat(str) { + str = str.replace( + /.*var syl_1n(.*?)var Data_netWorthTrend([^;]*?);.*/, + 'var syl_1n$1var Data_netWorthTrend$2;' + ) return new Function(`${str}; return {line: Data_netWorthTrend.map(it => ({ x: ~~(it.x/1000), y: +(it.y * 10000).toFixed(0),