Skip to content

Commit

Permalink
解决OneDrive个人版无法同步子目录的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
libsgh committed Jul 7, 2021
1 parent fa35680 commit 2162c93
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Util/OneDrive.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func OneDriveRefreshToken(account entity.Account) string {
}
func BuildODRequestUrl(path, query string) string {
if path != "" && path != "/" {
path = fmt.Sprintf(":/%s:/", path)
path = fmt.Sprintf(":%s:/", path)
}
return "https://graph.microsoft.com/v1.0" + "/me/drive/root" + path + query
}
Expand All @@ -79,6 +79,7 @@ func OndriveGetFiles(url, accountId, fileId, p string) {
if err != nil {
panic(err.Error())
}
fmt.Println(resp.Text)
byteFiles := []byte(resp.Text)
d := jsoniter.Get(byteFiles, "value")
//nextMarker = jsoniter.Get(byteFiles, "next_marker").ToString()
Expand Down

0 comments on commit 2162c93

Please sign in to comment.