This commit is contained in:
Liang Ding 2022-06-14 00:22:57 +08:00
parent c70f7ee28c
commit 80e654c26d
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
5 changed files with 7 additions and 6 deletions

View file

@ -18,6 +18,7 @@ package api
import (
"encoding/hex"
"fmt"
"net/http"
"time"
@ -77,7 +78,8 @@ func indexRepo(c *gin.Context) {
message := arg["message"].(string)
if err := model.IndexRepo(message); nil != err {
ret.Code = -1
ret.Msg = model.Conf.Language(140)
ret.Msg = fmt.Sprintf(model.Conf.Language(140), err)
ret.Data = map[string]interface{}{"closeTimeout": 5000}
return
}
}