|
@@ -16,7 +16,7 @@ import (
|
|
|
|
|
|
var (
|
|
|
ossclient *oss.Client
|
|
|
- ha = sha256.New()
|
|
|
+ //ha = sha256.New()
|
|
|
|
|
|
ossEndpoint, ossAccessKeyId, ossAccessKeySecret, ossBucketName string
|
|
|
)
|
|
@@ -99,6 +99,7 @@ func demoDownFile(filename string, objectName string) {
|
|
|
|
|
|
func getHashKey(bs []byte) string {
|
|
|
util.Catch()
|
|
|
+ ha := sha256.New()
|
|
|
ha.Write(bs)
|
|
|
hbs := ha.Sum(nil)
|
|
|
key := fmt.Sprintf("%x", hbs)
|