This commit is contained in:
Liang Ding 2022-08-27 01:19:52 +08:00
parent 4fb74f1186
commit 2a5212e15d
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
3 changed files with 55 additions and 0 deletions

View file

@ -131,6 +131,16 @@ func checkUpdate(c *gin.Context) {
model.CheckUpdate(showMsg)
}
func exportLog(c *gin.Context) {
ret := gulu.Ret.NewResult()
defer c.JSON(http.StatusOK, ret)
zipPath := model.ExportSystemLog()
ret.Data = map[string]interface{}{
"zip": zipPath,
}
}
var start = true // 是否是启动
func getConf(c *gin.Context) {
ret := gulu.Ret.NewResult()