Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tron-explore
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
张建华@五瓣科技
tron-explore
Commits
85328b2c
Commit
85328b2c
authored
Dec 01, 2020
by
jianhua.zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页统计接口微调
parent
6de5665d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
TransactionControllerV1.java
...n/tron/explore/controller/v1/TransactionControllerV1.java
+2
-2
CensusModel.java
...va/com/wuban/tron/explore/param/response/CensusModel.java
+1
-1
No files found.
src/main/java/com/wuban/tron/explore/controller/v1/TransactionControllerV1.java
View file @
85328b2c
...
...
@@ -535,7 +535,7 @@ public class TransactionControllerV1 {
*
* @return
*/
@RequestMapping
(
value
=
"
trans/tps
"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"
/indexStatistical
"
,
method
=
RequestMethod
.
GET
)
public
ApiResponse
transTPS
()
{
CensusModel
censusModel
=
new
CensusModel
();
...
...
@@ -592,7 +592,7 @@ public class TransactionControllerV1 {
censusModel
.
setTransNumber
(
totalVolume
.
toString
());
}
censusModel
.
setDifficulty
(
""
);
//
censusModel.setDifficulty("");
return
ResponseKit
.
success
(
censusModel
);
}
...
...
src/main/java/com/wuban/tron/explore/param/response/CensusModel.java
View file @
85328b2c
...
...
@@ -24,7 +24,7 @@ public class CensusModel {
@JsonProperty
(
value
=
"block_number"
)
private
String
blockNumber
;
private
String
tps
;
private
String
difficulty
;
//
private String difficulty;
@JsonProperty
(
value
=
"address_number"
)
private
String
addressNumber
;
...
...
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