Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
VIZ.TVP.CBA
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘龙飞
VIZ.TVP.CBA
Commits
708a98ce
Commit
708a98ce
authored
Mar 06, 2023
by
wangonghui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
积分排名上版预览
parent
8b7c1e60
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
9 deletions
+13
-9
VIZ.TVP.FTB.Module/Common/JsonModel.cs
+5
-4
VIZ.TVP.FTB.Module/FTeamStandings/Model/TeamRanks.cs
+1
-1
VIZ.TVP.FTB.Module/FTeamStandings/ViewModel/FTeamStandingViewModel.cs
+7
-4
No files found.
VIZ.TVP.FTB.Module/Common/JsonModel.cs
View file @
708a98ce
...
@@ -90,12 +90,13 @@ namespace VIZ.TVP.FTB.Module
...
@@ -90,12 +90,13 @@ namespace VIZ.TVP.FTB.Module
{
{
try
try
{
{
string
TeamScoreDataPath
=
strUrl
+
"team/getteamsta
nding
"
;
string
TeamScoreDataPath
=
strUrl
+
"team/getteamsta
ts
"
;
Dictionary
<
string
,
string
>
dict
=
new
Dictionary
<
string
,
string
>();
Dictionary
<
string
,
string
>
dict
=
new
Dictionary
<
string
,
string
>();
dict
.
Add
(
"leagueid"
,
"401"
);
dict
.
Add
(
"competitionId"
,
type
);
dict
.
Add
(
"seasonId"
,
"110000005454"
);
string
newKey
=
Utils
.
GetKey
(
appID
,
appKey
);
string
newKey
=
Utils
.
GetKey
(
appID
,
appKey
);
...
@@ -106,8 +107,8 @@ namespace VIZ.TVP.FTB.Module
...
@@ -106,8 +107,8 @@ namespace VIZ.TVP.FTB.Module
settings
.
NullValueHandling
=
NullValueHandling
.
Ignore
;
settings
.
NullValueHandling
=
NullValueHandling
.
Ignore
;
TeamRanks
teamRanks
=
JsonConvert
.
DeserializeObject
<
TeamRanks
>(
result
,
settings
);
TeamRanks
teamRanks
=
JsonConvert
.
DeserializeObject
<
TeamRanks
>(
result
,
settings
);
var
sortRanks
=
teamRanks
.
team
rank
.
OrderBy
(
a
=>
a
.
score
).
ToList
();
var
sortRanks
=
teamRanks
.
team
stats
.
OrderBy
(
a
=>
a
.
score
).
ToList
();
teamRanks
.
team
rank
=
sortRanks
;
teamRanks
.
team
stats
=
sortRanks
;
Console
.
WriteLine
(
"球队积分排行数据============>:"
+
TeamScoreDataPath
);
Console
.
WriteLine
(
"球队积分排行数据============>:"
+
TeamScoreDataPath
);
...
...
VIZ.TVP.FTB.Module/FTeamStandings/Model/TeamRanks.cs
View file @
708a98ce
...
@@ -12,6 +12,6 @@ namespace VIZ.TVP.FTB.Module
...
@@ -12,6 +12,6 @@ namespace VIZ.TVP.FTB.Module
/// 最后推送数据时间
/// 最后推送数据时间
/// </summary>
/// </summary>
public
string
LastPushDataDateTime
{
get
;
set
;
}
=
""
;
public
string
LastPushDataDateTime
{
get
;
set
;
}
=
""
;
public
List
<
Teamrank
>
team
rank
{
get
;
set
;
}
public
List
<
Teamrank
>
team
stats
{
get
;
set
;
}
}
}
}
}
VIZ.TVP.FTB.Module/FTeamStandings/ViewModel/FTeamStandingViewModel.cs
View file @
708a98ce
...
@@ -42,11 +42,12 @@ namespace VIZ.TVP.FTB.Module
...
@@ -42,11 +42,12 @@ namespace VIZ.TVP.FTB.Module
if
(
teamStands
==
null
)
return
;
if
(
teamStands
==
null
)
return
;
TeamRanksModel
=
new
ObservableCollection
<
Teamrank
>();
TeamRanksModel
=
new
ObservableCollection
<
Teamrank
>();
int
i
=
1
;
int
i
=
1
;
foreach
(
var
teamRank
in
teamStands
.
team
rank
)
foreach
(
var
teamRank
in
teamStands
.
team
stats
)
{
{
teamRank
.
rank
=
i
.
ToString
();
teamRank
.
rank
=
i
.
ToString
();
teamRank
.
goalAndLoseNums
=
String
.
Format
(
"{0}/{1}"
,
teamRank
.
goalsNum
,
teamRank
.
loseGoalsNum
);
teamRank
.
goalAndLoseNums
=
String
.
Format
(
"{0}/{1}"
,
teamRank
.
goalsNum
,
teamRank
.
loseGoalsNum
);
teamRank
.
teamLogo
=
teamRank
.
teamName
;
TeamRanksModel
.
Add
(
teamRank
);
TeamRanksModel
.
Add
(
teamRank
);
i
++;
i
++;
...
@@ -54,8 +55,6 @@ namespace VIZ.TVP.FTB.Module
...
@@ -54,8 +55,6 @@ namespace VIZ.TVP.FTB.Module
}
}
public
string
CombineTeamStandingData
()
public
string
CombineTeamStandingData
()
{
{
try
try
...
@@ -100,9 +99,13 @@ namespace VIZ.TVP.FTB.Module
...
@@ -100,9 +99,13 @@ namespace VIZ.TVP.FTB.Module
data
+=
"*"
;
data
+=
"*"
;
data
+=
tempTeamRankModel
.
goalAndLoseNums
.
Replace
(
" "
,
""
);
data
+=
tempTeamRankModel
.
goalAndLoseNums
.
Replace
(
" "
,
""
);
data
+=
"*"
;
data
+=
tempTeamRankModel
.
score
.
Replace
(
" "
,
""
);
data
+=
";"
;
data
+=
";"
;
if
(
i
==
10
)
if
(
i
==
10
)
{
{
data
+=
"#"
;
data
+=
"#"
;
}
}
...
...
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