Skip to content

Commit 1d9b977

Browse files
committed
添加代码
1 parent 541eda4 commit 1d9b977

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

tencentyun/TLSSigAPI.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77
"crypto/sha256"
88
"encoding/base64"
99
"encoding/json"
10-
"fmt"
1110
"strconv"
1211
"time"
1312
)
@@ -19,8 +18,6 @@ func hmacsha256(sdkappid int, key string, identifier string, currTime int64, exp
1918
contentToBeSigned += "TLS.time:" + strconv.FormatInt(currTime, 10) + "\n"
2019
contentToBeSigned += "TLS.expire:" + strconv.Itoa(expire) + "\n"
2120

22-
fmt.Println(contentToBeSigned)
23-
2421
h := hmac.New(sha256.New, []byte(key))
2522
h.Write([]byte(contentToBeSigned))
2623
return base64.StdEncoding.EncodeToString(h.Sum(nil))

0 commit comments

Comments
 (0)