This commit is contained in:
suyl
2021-08-17 14:50:56 +08:00
parent 88d8aa0a2d
commit 9f92a140d4

View File

@@ -130,6 +130,7 @@ func (a *API) Decrypt(sign, timestr, nonce, msg string) (decryptedMsg string, er
// }
//}
c := NewDingTalkCrypto(a.GetCallbackToken(), string(a.GetCallbackAESKey()), a.corpID)
fmt.Println("1111111111111111111111111111111111111111111111111111")
return c.GetDecryptMsg(sign, timestr, nonce, msg)
}
@@ -264,6 +265,7 @@ func (c *DingTalkCrypto) GetDecryptMsg(signature, timestamp, nonce, secretMsg st
if string(corpID) != c.SuiteKey {
return "", errors.New("ERROR: CorpID匹配不正确")
}
fmt.Println("222222222222222222222222222222222222")
return string(plantText[:size]), nil
}