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
fcc9822c
Commit
fcc9822c
authored
Nov 09, 2021
by
lixinming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
d51d07b9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletions
+14
-1
xsxxfxData.ts
src/data/xsxxfxData.ts
+14
-1
No files found.
src/data/xsxxfxData.ts
View file @
fcc9822c
...
@@ -54,7 +54,7 @@ export async function get近期比赛概览(PID, checkDate) {
...
@@ -54,7 +54,7 @@ export async function get近期比赛概览(PID, checkDate) {
opponentPic
:
info
.
OPPONENT_PIC
,
opponentPic
:
info
.
OPPONENT_PIC
,
opponentScore
,
opponentScore
,
oppenentName
:
info
.
OPPONENT_NAME
,
oppenentName
:
info
.
OPPONENT_NAME
,
pkTime
:
info
.
M_DATE
,
pkTime
:
dataFormat
(
info
.
M_DATE
)
,
result
:
matchResult
,
result
:
matchResult
,
mid
:
info
.
M_ID
mid
:
info
.
M_ID
});
});
...
@@ -63,6 +63,19 @@ export async function get近期比赛概览(PID, checkDate) {
...
@@ -63,6 +63,19 @@ export async function get近期比赛概览(PID, checkDate) {
return
result
;
return
result
;
}
}
function
dataFormat
(
time
)
{
let
date
=
new
Date
(
time
);
let
match
=
date
.
getMonth
()
+
1
;
let
matchStr
=
match
>
9
?
`
${
match
}
`
:
`0
${
match
}
`
;
let
day
=
date
.
getMonth
();
let
dayStr
=
day
>
9
?
`
${
day
}
`
:
`0
${
day
}
`
;
let
hours
=
date
.
getHours
();
let
hoursStr
=
hours
>
9
?
`
${
hours
}
`
:
`0
${
hours
}
`
;
let
Minutes
=
date
.
getMinutes
()
let
MinutesStr
=
Minutes
>
9
?
`
${
Minutes
}
`
:
`0
${
Minutes
}
`
;
return
`
${
matchStr
}
/
${
dayStr
}
${
hoursStr
}
:
${
MinutesStr
}
`
;
}
export
async
function
get
比赛详情
(
mid
)
{
export
async
function
get
比赛详情
(
mid
)
{
let
sql
=
"select * from match_information where m_id = Placeholder1"
;
let
sql
=
"select * from match_information where m_id = Placeholder1"
;
let
subSql
=
"select m_date from recent_match where m_id = Placeholder1 "
let
subSql
=
"select m_date from recent_match where m_id = Placeholder1 "
...
...
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