Commit f17a8d94 by lixinming

no message

parent a77fc531
......@@ -3,6 +3,15 @@ import { get选手详细分析 } from "../data/analysisData";
import { getBaseData, get上个赛季排名, get全部比赛日期, get单前比赛对局时间节点, get右侧数据, get图表, get散点图, get比赛详情, get近期比赛概览 } from "../data/xsxxfxData";
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) {
let ret:any = {};
let { pid } = req.query;
......@@ -17,6 +26,10 @@ export async function getData(req, res) {
ret["base2"] = getKeyStringValue("技术特点评分", baseInfo["击球信息"] );
ret["base2"].list.forEach(info => {
info["num"] = powerConfig[info.value];
});
let jqbsglInfo = await 近期比赛概览(pid, null);
ret["jqbsgl"] = jqbsglInfo;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment