Skip to content

Commit

Permalink
fix: fix url error
Browse files Browse the repository at this point in the history
  • Loading branch information
dacongda committed Aug 27, 2024
1 parent 5ba116a commit 36d56b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions casdoor/casdoor.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,11 @@ func (client Client) Put(urlPath string, reader io.Reader) (r *oss.Object, err e

//urlPath = client.transUrl(urlPath)

_, name, err := client.UploadResource("casdoor-oss", "", "", client.transUrl(urlPath), buffer)
fileUrl, name, err := client.UploadResource("casdoor-oss", "", "", client.transUrl(urlPath), buffer)

now := time.Now()
return &oss.Object{
Path: name,
Path: fileUrl,
Name: name,
LastModified: &now,
StorageInterface: client,
Expand Down

0 comments on commit 36d56b1

Please sign in to comment.