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
3d966a2b
Commit
3d966a2b
authored
May 15, 2020
by
szh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
反馈指向新表
parent
b895f1f2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
process.go
pkg/app/process.go
+2
-2
router.go
routers/router.go
+4
-4
No files found.
pkg/app/process.go
View file @
3d966a2b
...
...
@@ -597,7 +597,7 @@ func getAutoSSHProcessInfo() (*PaiProcessInfo,error) {
cmd
.
Stdout
=
&
buf
err
:=
cmd
.
Run
()
if
err
!=
nil
{
tlog
.
Error
(
"get
Pai
ProcessInfo cmd"
,
"err"
,
err
)
tlog
.
Error
(
"get
AutoSSH
ProcessInfo cmd"
,
"err"
,
err
)
return
nil
,
err
}
trimBuf
:=
strings
.
Trim
(
buf
.
String
(),
" "
)
...
...
@@ -609,7 +609,7 @@ func getAutoSSHProcessInfo() (*PaiProcessInfo,error) {
location
,
_
:=
time
.
LoadLocation
(
"Local"
)
tt
,
err
:=
time
.
ParseInLocation
(
time
.
ANSIC
,
lstart
,
location
)
if
err
!=
nil
{
tlog
.
Error
(
"get
Pai
ProcessInfo"
,
"err"
,
err
)
tlog
.
Error
(
"get
AutoSSH
ProcessInfo"
,
"err"
,
err
)
return
nil
,
err
}
start
:=
tt
.
Unix
()
...
...
routers/router.go
View file @
3d966a2b
...
...
@@ -39,13 +39,13 @@ func InitRouter() *gin.Engine {
//服务器状态
apiv1
.
POST
(
"/serverstatus"
,
v1
.
GetServerStatus
)
//反馈信息
apiv1
.
POST
(
"/feedback"
,
v1
.
FeedBack
)
apiv1
.
POST
(
"/feedback"
,
v1
.
FeedBack
WithoutSSH
)
//反馈处理进度
apiv1
.
POST
(
"/iscomplete"
,
v1
.
FeedBackStatus
)
apiv1
.
POST
(
"/iscomplete"
,
v1
.
FeedBackStatus
WithoutSSH
)
//反馈信息
apiv1
.
POST
(
"/feedback
new"
,
v1
.
FeedBackWithoutSSH
)
apiv1
.
POST
(
"/feedback
1"
,
v1
.
FeedBack
)
//反馈处理进度
apiv1
.
POST
(
"/iscomplete
new"
,
v1
.
FeedBackStatusWithoutSSH
)
apiv1
.
POST
(
"/iscomplete
1"
,
v1
.
FeedBackStatus
)
apiv1
.
POST
(
"/escrowpassword"
,
v1
.
EscrowPasswd
)
//pai更新完成用户手动重启设备
//apiv1.POST("/isreboot",v1.IsReBoot)
...
...
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