Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sportsschoolserver
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
node_server
sportsschoolserver
Commits
f17a8d94
Commit
f17a8d94
authored
Nov 10, 2021
by
lixinming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
a77fc531
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
xsxxfx.ts
src/biz/xsxxfx.ts
+13
-0
No files found.
src/biz/xsxxfx.ts
View file @
f17a8d94
...
@@ -3,6 +3,15 @@ import { get选手详细分析 } from "../data/analysisData";
...
@@ -3,6 +3,15 @@ import { get选手详细分析 } from "../data/analysisData";
import
{
getBaseData
,
get
上个赛季排名
,
get
全部比赛日期
,
get
单前比赛对局时间节点
,
get
右侧数据
,
get
图表
,
get
散点图
,
get
比赛详情
,
get
近期比赛概览
}
from
"../data/xsxxfxData"
;
import
{
getBaseData
,
get
上个赛季排名
,
get
全部比赛日期
,
get
单前比赛对局时间节点
,
get
右侧数据
,
get
图表
,
get
散点图
,
get
比赛详情
,
get
近期比赛概览
}
from
"../data/xsxxfxData"
;
import
{
getChartData
,
objKeyReplace
,
getKeyValue
,
getSingleYAndMoreData
,
getListData
,
getMoreYChartData
,
getKeyStringValue
}
from
"../util/tools"
;
import
{
getChartData
,
objKeyReplace
,
getKeyValue
,
getSingleYAndMoreData
,
getListData
,
getMoreYChartData
,
getKeyStringValue
}
from
"../util/tools"
;
//力量等级枚举
let
powerConfig
=
{
"D"
:
20
,
"C"
:
40
,
"B"
:
60
,
"A"
:
80
,
"S"
:
100
}
export
async
function
getData
(
req
,
res
)
{
export
async
function
getData
(
req
,
res
)
{
let
ret
:
any
=
{};
let
ret
:
any
=
{};
let
{
pid
}
=
req
.
query
;
let
{
pid
}
=
req
.
query
;
...
@@ -16,6 +25,10 @@ export async function getData(req, res) {
...
@@ -16,6 +25,10 @@ export async function getData(req, res) {
ret
[
"base1"
]
=
getKeyStringValue
(
"基础信息"
,
baseInfo
[
"基础信息"
]
);
ret
[
"base1"
]
=
getKeyStringValue
(
"基础信息"
,
baseInfo
[
"基础信息"
]
);
ret
[
"base2"
]
=
getKeyStringValue
(
"技术特点评分"
,
baseInfo
[
"击球信息"
]
);
ret
[
"base2"
]
=
getKeyStringValue
(
"技术特点评分"
,
baseInfo
[
"击球信息"
]
);
ret
[
"base2"
].
list
.
forEach
(
info
=>
{
info
[
"num"
]
=
powerConfig
[
info
.
value
];
});
let
jqbsglInfo
=
await
近期比赛概览
(
pid
,
null
);
let
jqbsglInfo
=
await
近期比赛概览
(
pid
,
null
);
ret
[
"jqbsgl"
]
=
jqbsglInfo
;
ret
[
"jqbsgl"
]
=
jqbsglInfo
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment