This commit is contained in:
Daniel 2024-04-02 19:58:03 +08:00
parent b6b0cf2e2c
commit 844fa8ef64
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 24 additions and 2 deletions

View file

@ -465,7 +465,8 @@ func getBlockInfo(c *gin.Context) {
id := arg["id"].(string)
tree, err := model.LoadTreeByBlockID(id)
// 仅在此处使用带重建索引的加载函数,其他地方不要使用
tree, err := model.LoadTreeByBlockIDWithReindex(id)
if errors.Is(err, model.ErrIndexing) {
ret.Code = 3
ret.Msg = model.Conf.Language(56)