訪問七牛下載鏈接下載apk出現{"error":"download token auth failed"}同一個資源有時候能下載有時候不能下載(目前發現不能下載的就當前一個),key是上傳之后存在我們mysql表里的,我下載的時候從表里取key,然后拼接下載鏈接。func (mac *Mac) Sign(data []byte) (token string) {h := hmac.New(sha1.New, mac.SecretKey)
h.Write(data)
sign := base64.URLEncoding.EncodeToString(h.Sum(nil))
return fmt.Sprintf("%s:%s", mac.AccessKey, sign)}代碼里面是有使用 安全 urlbase64 編碼的。我把鏈接復制到瀏覽器里面能看到中文
訪問七牛下載鏈接下載apk出現報錯?
慕的地8271018
2018-08-03 19:10:07
