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
ea71ed5a
Commit
ea71ed5a
authored
Jul 24, 2020
by
szh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
兼容x86_64架构 下载更新pai
parent
38ba2b43
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
process.go
pkg/app/process.go
+5
-2
No files found.
pkg/app/process.go
View file @
ea71ed5a
...
...
@@ -548,8 +548,8 @@ func AutoUpdatePai() error {
//对比版本号
version
:=
util
.
VersionCompare
(
GetVersion
())
//检查最新版本号online数据库
var
p
ai
pai_service
.
Pai
latest
,
err
:=
p
ai
.
GetPaiLatestVersion
(
int32
(
2
))
var
p
pai_service
.
Pai
latest
,
err
:=
p
.
GetPaiLatestVersion
(
int32
(
2
))
if
err
!=
nil
{
return
err
}
...
...
@@ -560,6 +560,9 @@ func AutoUpdatePai() error {
}
name
:=
setting
.
Chain33Pai
.
Name
+
"_"
+
latest
+
".tar.gz"
if
pai
.
GetArchType
()
==
"x86_64"
{
name
=
setting
.
Chain33Pai
.
Name
+
"-x86_64_"
+
latest
+
".tar.gz"
}
url
:=
setting
.
Chain33Pai
.
DownloadUrl
+
name
//oss下载更新包
err
=
DownLoadFile
(
url
,
name
,
int32
(
2
))
...
...
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