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
2ceb2c8d
Commit
2ceb2c8d
authored
Jun 08, 2020
by
szh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update sql
parent
d33b42af
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
raspDevList.go
models/raspDevList.go
+13
-1
No files found.
models/raspDevList.go
View file @
2ceb2c8d
...
@@ -36,7 +36,19 @@ func UpdateDevList1(rasp RaspDevList) error {
...
@@ -36,7 +36,19 @@ func UpdateDevList1(rasp RaspDevList) error {
}
}
return
tx
.
Commit
()
.
Error
return
tx
.
Commit
()
.
Error
}
}
if
err
:=
tx
.
Save
(
&
rasp
)
.
Error
;
err
!=
nil
{
if
err
:=
tx
.
Where
(
"addr = ?"
,
rasp
.
Addr
)
.
Updates
(
map
[
string
]
interface
{}{
"pai_version"
:
rasp
.
PaiVersion
,
"update_time"
:
rasp
.
UpdateTime
,
"height"
:
rasp
.
Height
,
"bty_version"
:
rasp
.
BtyVersion
,
"ext_ip"
:
rasp
.
ExtIp
,
"err"
:
""
,
"wallet_status"
:
rasp
.
WalletStatus
,
"node_status"
:
rasp
.
NodeStatus
,
"pai_status"
:
rasp
.
PaiStatus
,
},
)
.
Error
;
err
!=
nil
{
tx
.
Rollback
()
tx
.
Rollback
()
return
err
return
err
}
}
...
...
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