|
|
@@ -1,6 +1,7 @@
|
|
1
|
1
|
package api
|
|
2
|
2
|
|
|
3
|
3
|
import (
|
|
|
4
|
+ "fmt"
|
|
4
|
5
|
"github.com/gin-gonic/gin"
|
|
5
|
6
|
"github.com/gin-gonic/gin/binding"
|
|
6
|
7
|
requstform "github.com/lejianwen/rustdesk-api/v2/http/request/api"
|
|
|
@@ -60,5 +61,7 @@ func (p *Peer) SysInfo(c *gin.Context) {
|
|
60
|
61
|
func (p *Peer) SysInfoVer(c *gin.Context) {
|
|
61
|
62
|
//读取resources/version文件
|
|
62
|
63
|
v := service.AllService.AppService.GetAppVersion()
|
|
|
64
|
+ // 加上启动时间,方便client上传信息
|
|
|
65
|
+ v = fmt.Sprintf("%s\n%s", v, service.AllService.AppService.GetStartTime())
|
|
63
|
66
|
c.String(http.StatusOK, v)
|
|
64
|
67
|
}
|