🎨 细化云端同步锁提升稳定性 https://github.com/siyuan-note/siyuan/issues/5887

This commit is contained in:
Liang Ding 2022-09-17 22:33:52 +08:00
parent 90f45a420e
commit 3468fb0976
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
5 changed files with 17 additions and 11 deletions

View file

@ -85,7 +85,7 @@ func setFileAnnotation(c *gin.Context) {
ret.Msg = err.Error()
return
}
if err := gulu.File.WriteFileSafer(writePath, []byte(data), 0644); nil != err {
if err := util.WriteFileSafer(writePath, []byte(data)); nil != err {
ret.Code = -1
ret.Msg = err.Error()
return