Skip to content

Commit 876a5c0

Browse files
committed
fix: layout 中的上传例子bug
Signed-off-by: tbxark <[email protected]>
1 parent b07c6ae commit 876a5c0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

layout/cmd/cli/storage/cmd/migrate.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func runMigrate(cmd *cobra.Command, args []string) {
7979
log.Errorf("upload file error: %v", e)
8080
continue
8181
}
82-
nu := upload.GenerateURL(ret.Key)
82+
nu := upload.GenerateURL(ret)
8383
result[u] = nu
8484
log.Debugf("move file success: %s -> %s", u, nu)
8585
}

layout/cmd/cli/storage/cmd/upload.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ func runUpload(cmd *cobra.Command, args []string) {
5959
log.Errorf("upload file error: %v", err)
6060
return nil
6161
}
62-
log.Debugf("upload file success: %s -> %s", path, ret.Key)
62+
log.Debugf("upload file success: %s -> %s", path, ret)
6363
resBuf.WriteString(info.Name())
6464
resBuf.WriteString("\n -> ")
65-
resBuf.WriteString(upload.GenerateURL(ret.Key))
65+
resBuf.WriteString(upload.GenerateURL(ret))
6666
resBuf.WriteString("\n\n")
6767
return nil
6868
})

0 commit comments

Comments
 (0)