优化解析
parent
59b5e4da96
commit
65238a97d6
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "io.yutent.gaystat",
|
||||
"version": "2.1.2",
|
||||
"version": "2.1.3",
|
||||
"description": "搞基数据",
|
||||
"main": "src/main.js",
|
||||
"scripts": {
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue