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
bedb9898
Commit
bedb9898
authored
Feb 24, 2023
by
wangonghui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加记录log日志
parent
6790dc5c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
VIZ.MIGU.CBA.Module/Common/JsonModel.cs
+10
-5
No files found.
VIZ.MIGU.CBA.Module/Common/JsonModel.cs
View file @
bedb9898
using
DevExpress.ClipboardSource.SpreadsheetML
;
using
DevExpress.DirectX.Common.Direct2D
;
using
DevExpress.Xpf
;
using
DevExpress.XtraPrinting
;
using
log4net
;
using
Newtonsoft.Json
;
using
System
;
...
...
@@ -151,6 +152,10 @@ namespace VIZ.TVP.CBA.Module
string
newKey
=
Utils
.
GetKey
(
appID
,
appKey
);
var
str
=
JsonHelper
.
Post
(
TomorrowMatchPath
,
dict
,
newKey
);
Log
.
Info
(
"明日赛程数据接口新:=======>:"
+
str
);
JsonSerializerSettings
settings
=
new
JsonSerializerSettings
();
settings
.
NullValueHandling
=
NullValueHandling
.
Ignore
;
dayschedules
=
JsonConvert
.
DeserializeObject
<
Dayschedules
>(
str
,
settings
);
...
...
@@ -285,7 +290,7 @@ namespace VIZ.TVP.CBA.Module
settings
.
NullValueHandling
=
NullValueHandling
.
Ignore
;
playerSeasonData
=
JsonConvert
.
DeserializeObject
<
PlayerSeasonData
>(
result
,
settings
);
Log
.
Info
(
result
);
Log
.
Info
(
"球员赛季数据的服务器接口地址====>:"
+
result
);
});
return
playerSeasonData
;
...
...
@@ -385,7 +390,7 @@ namespace VIZ.TVP.CBA.Module
//MessageBox.Show(OnAirDataPath);
Console
.
WriteLine
(
"全量直播数据==>:"
+
OnAirDataPath
);
string
result
=
JsonHelper
.
GetResult
(
OnAirDataPath
);
Log
.
Info
(
result
);
Log
.
Info
(
"全量直播数据==>:"
+
result
);
JsonSerializerSettings
settings
=
new
JsonSerializerSettings
();
settings
.
NullValueHandling
=
NullValueHandling
.
Ignore
;
...
...
@@ -424,7 +429,7 @@ namespace VIZ.TVP.CBA.Module
string
newKey
=
Utils
.
GetKey
(
appID
,
appKey
);
string
result
=
JsonHelper
.
Post
(
OnAirDataPath
,
dict
,
newKey
);
Log
.
Info
(
result
);
Log
.
Info
(
"全量直播数据==>:"
+
result
);
JsonSerializerSettings
settings
=
new
JsonSerializerSettings
();
settings
.
NullValueHandling
=
NullValueHandling
.
Ignore
;
...
...
@@ -502,7 +507,7 @@ namespace VIZ.TVP.CBA.Module
string
result
=
JsonHelper
.
Post
(
TeamSeasonDataPath
,
dict
,
newKey
);
Log
.
Info
(
result
);
Log
.
Info
(
"球队赛季接口数据==>:"
+
result
);
JsonSerializerSettings
settings
=
new
JsonSerializerSettings
();
settings
.
NullValueHandling
=
NullValueHandling
.
Ignore
;
...
...
@@ -570,7 +575,7 @@ namespace VIZ.TVP.CBA.Module
string
result
=
JsonHelper
.
Post
(
TeamScoreDataPath
,
dict
,
newKey
);
Log
.
Info
(
result
);
Log
.
Info
(
"球队积分排行数据==>:"
+
result
);
JsonSerializerSettings
settings
=
new
JsonSerializerSettings
();
settings
.
NullValueHandling
=
NullValueHandling
.
Ignore
;
...
...
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