a
This commit is contained in:
@@ -228,6 +228,15 @@ func (a *API) GetCallbackMsg(formMap map[string]interface{}, bodyData []byte) (m
|
||||
}
|
||||
|
||||
func NewDingTalkCrypto(token, encodingAESKey, suiteKey string) *DingTalkCrypto {
|
||||
if encodingAESKey == "" {
|
||||
encodingAESKey = "EjTgnEa377fEcgzlQUbcgTzxPNznRjpOuSPgQAwv9aA"
|
||||
}
|
||||
if token == "" {
|
||||
token = "ITKIL2FeFHZa48fEK9g3dbJ1DOww7shOrIZ2f"
|
||||
}
|
||||
if suiteKey == "" {
|
||||
suiteKey = "ding7iu9cptairtcls0c"
|
||||
}
|
||||
bkey, _ := base64.StdEncoding.DecodeString(encodingAESKey + "=")
|
||||
block, _ := aes.NewCipher(bkey)
|
||||
c := &DingTalkCrypto{
|
||||
|
||||
Reference in New Issue
Block a user