Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
core
Project
Project
Details
Activity
Releases
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
ball
core
Commits
fc11e5b1
Commit
fc11e5b1
authored
Mar 28, 2026
by
郑磊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新最大日期逻辑
parent
4d0129f0
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
309 additions
and
0 deletions
+309
-0
data.ts
data.ts
+2
-0
yarn.lock
yarn.lock
+307
-0
No files found.
data.ts
View file @
fc11e5b1
...
@@ -148,6 +148,7 @@ export function setupChannel(filterGetter?: () => UserFilter[] | undefined | nul
...
@@ -148,6 +148,7 @@ export function setupChannel(filterGetter?: () => UserFilter[] | undefined | nul
const
dateGrouped
:
Record
<
number
,
DatePromotedData
>
=
{}
const
dateGrouped
:
Record
<
number
,
DatePromotedData
>
=
{}
raw
.
list
.
forEach
((
promoted
)
=>
{
raw
.
list
.
forEach
((
promoted
)
=>
{
const
date
=
getCrownDayStart
(
promoted
.
match_time
)
const
date
=
getCrownDayStart
(
promoted
.
match_time
)
maxDate
.
value
=
Math
.
max
(
getCrownDayStart
(),
date
,
maxDate
.
value
)
if
(
!
dateGrouped
[
date
])
{
if
(
!
dateGrouped
[
date
])
{
dateGrouped
[
date
]
=
{
dateGrouped
[
date
]
=
{
hasNewPromoted
:
false
,
hasNewPromoted
:
false
,
...
@@ -166,6 +167,7 @@ export function setupChannel(filterGetter?: () => UserFilter[] | undefined | nul
...
@@ -166,6 +167,7 @@ export function setupChannel(filterGetter?: () => UserFilter[] | undefined | nul
const
result
:
PromotedData
[]
=
[]
const
result
:
PromotedData
[]
=
[]
for
(
const
promoted
of
reversed
)
{
for
(
const
promoted
of
reversed
)
{
const
date
=
getCrownDayStart
(
promoted
.
match_time
)
const
date
=
getCrownDayStart
(
promoted
.
match_time
)
maxDate
.
value
=
Math
.
max
(
getCrownDayStart
(),
date
,
maxDate
.
value
)
if
(
!
dateData
.
value
[
date
])
{
if
(
!
dateData
.
value
[
date
])
{
dateData
.
value
[
date
]
=
{
dateData
.
value
[
date
]
=
{
hasNewPromoted
:
true
,
hasNewPromoted
:
true
,
...
...
yarn.lock
0 → 100644
View file @
fc11e5b1
This diff is collapsed.
Click to expand it.
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