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
f0bbd4c1
Commit
f0bbd4c1
authored
Apr 09, 2020
by
szh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加系统arch的判断
parent
61060654
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
pai.go
service/pai_service/pai.go
+11
-0
No files found.
service/pai_service/pai.go
View file @
f0bbd4c1
...
@@ -32,6 +32,7 @@ type Pai struct {
...
@@ -32,6 +32,7 @@ type Pai struct {
NetInfo
*
types
.
NodeNetInfo
`json:"net_info"`
NetInfo
*
types
.
NodeNetInfo
`json:"net_info"`
BtyVersion
*
types
.
VersionInfo
`json:"bty_version"`
BtyVersion
*
types
.
VersionInfo
`json:"bty_version"`
Err
string
`json:"err"`
Err
string
`json:"err"`
Arch
string
`json:"arch"`
}
}
type
ReqUpdatePai
struct
{
type
ReqUpdatePai
struct
{
...
@@ -43,6 +44,16 @@ func (p *Pai) SetPai() error {
...
@@ -43,6 +44,16 @@ func (p *Pai) SetPai() error {
p
.
GetConfig
()
p
.
GetConfig
()
p
.
GetDevstatus
()
p
.
GetDevstatus
()
p
.
GetBtyVersion
()
p
.
GetBtyVersion
()
p
.
SetPaiEnv
()
return
nil
}
func
(
p
*
Pai
)
SetPaiEnv
()
error
{
var
buf
bytes
.
Buffer
cmd
:=
exec
.
Command
(
"arch"
)
cmd
.
Stdout
=
&
buf
cmd
.
Run
()
p
.
Arch
=
buf
.
String
()
return
nil
return
nil
}
}
...
...
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