Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
chain33-pai
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
szh
chain33-pai
Commits
385cf171
Commit
385cf171
authored
Apr 07, 2020
by
szh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加上传信息
parent
cb99f86a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
process.go
pkg/app/process.go
+10
-0
pai.go
service/pai_service/pai.go
+5
-0
No files found.
pkg/app/process.go
View file @
385cf171
...
...
@@ -644,6 +644,16 @@ func UploadInfo(tick * time.Ticker) {
}
}
}
//上传基本信息
func
uploadInfo
()
error
{
var
pai
pai_service
.
Pai
err
:=
pai
.
SetPai
()
if
err
!=
nil
{
tlog
.
Error
(
"SetPai"
,
"err"
,
err
)
return
err
}
return
nil
}
func
uploadVersion
()
error
{
client
:=
&
http
.
Client
{}
...
...
service/pai_service/pai.go
View file @
385cf171
...
...
@@ -36,6 +36,11 @@ type ReqUpdatePai struct {
Version
string
`json:"version" binding:"required"`
}
func
(
p
*
Pai
)
SetPai
()
error
{
return
nil
}
func
(
p
*
Pai
)
GetConfig
()
bool
{
if
pai_serial
!=
""
{
...
...
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