فهرست منبع

:bug: 复制数据仓库密钥错误 https://github.com/siyuan-note/siyuan/issues/5226

Liang Ding 3 سال پیش
والد
کامیت
ed1d0b3cc1
1فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  1. 1 2
      kernel/api/repo.go

+ 1 - 2
kernel/api/repo.go

@@ -17,7 +17,6 @@
 package api
 package api
 
 
 import (
 import (
-	"encoding/hex"
 	"fmt"
 	"fmt"
 	"net/http"
 	"net/http"
 
 
@@ -113,7 +112,7 @@ func initRepoKey(c *gin.Context) {
 	}
 	}
 
 
 	ret.Data = map[string]interface{}{
 	ret.Data = map[string]interface{}{
-		"key": hex.EncodeToString(model.Conf.Repo.Key),
+		"key": model.Conf.Repo.Key,
 	}
 	}
 }
 }