Skip to content

Commit

Permalink
upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
jaronnie committed Aug 7, 2021
1 parent 93930bd commit 6117fdf
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ var (
accountOver bool
)

//go:embed ..\banner.txt
//go:embed banner.txt
var welcome string

var (
Expand Down
7 changes: 7 additions & 0 deletions cmd/banner.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
_ _
(_) __ _ _ __ ___ _ __ _ __ (_) ___
| |/ _` | '__/ _ \| '_ \| '_ \| |/ _ \
| | (_| | | | (_) | | | | | | | | __/
_/ |\__,_|_| \___/|_| |_|_| |_|_|\___|
|__/

3 changes: 2 additions & 1 deletion cmd/put.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ func getFinalKey(path string) string {

func putRemoteFile(path string, mac *qbox.Mac, bucket string, cfg storage.Config) {
finalKey := getFinalKey(path)
fmt.Println(finalKey)
bm := storage.NewBucketManager(mac, &cfg)
res, err := bm.Fetch(path, bucket, finalKey)
if err != nil {
Expand Down Expand Up @@ -133,7 +134,7 @@ func putLocalFile(path string, mac *qbox.Mac, bucket string, cfg storage.Config)
fmt.Println("上传失败")
return
}
fmt.Println("http://" + domains[0].Domain + "/" + upload)
fmt.Println("https://" + domains[0].Domain + "/" + upload)
}

func init() {
Expand Down

0 comments on commit 6117fdf

Please sign in to comment.