fix: update mount path

This commit is contained in:
Ns2Kracy 2024-12-17 14:57:05 +08:00
parent 3a21c7c8ff
commit 8d81c159b7
No known key found for this signature in database
GPG Key ID: 6A9CFB6109E759C1

View File

@ -162,7 +162,7 @@ func GetRecoverStorage(ctx echo.Context) error {
dmap["token"] = `{"access_token":"` + dropbox.AccessToken + `","token_type":"bearer","refresh_token":"` + dropbox.Addition.RefreshToken + `","expiry":"` + currentDate + `T` + currentTime.Add(time.Hour*3).Add(time.Minute*50).Format("15:04:05") + `.780385354Z"}`
dmap["mount_point"] = "/mnt/" + username
service.MyService.Storage().CreateConfig(dmap, username, "dropbox")
service.MyService.Storage().MountStorage("/media/"+username, username+":")
service.MyService.Storage().MountStorage("/mnt/"+username, username+":")
notify["status"] = "success"
notify["message"] = "Success"