fix(aliyundrive): device session signature error (#3398)

* fix signature

* fix: indent-error-flow [skip ci]
This commit is contained in:
Andy Hsu
2023-02-14 19:17:21 +08:00
committed by GitHub
parent 2ca3e0b8bc
commit de66708b24
4 changed files with 88 additions and 42 deletions

View File

@ -0,0 +1,16 @@
package aliyundrive
import (
"crypto/ecdsa"
"github.com/alist-org/alist/v3/pkg/generic_sync"
)
type State struct {
deviceID string
signature string
nonce int
privateKey *ecdsa.PrivateKey
}
var global = generic_sync.MapOf[string, *State]{}