This commit is contained in:
suyl
2021-08-17 15:03:30 +08:00
parent f4b2e65790
commit 7dc3fc55f0

View File

@@ -257,7 +257,7 @@ func (c *DingTalkCrypto) GetDecryptMsg(signature, timestamp, nonce, secretMsg st
size := binary.BigEndian.Uint32(plantText[16:20])
plantText = plantText[20:]
corpID := plantText[size:]
fmt.Println("222222222222222222222222222222222222", string(plantText[:size]))
fmt.Println("222222222222222222222222222222222222", string(plantText[:size]), corpID)
if string(corpID) != c.SuiteKey {
return "", errors.New("ERROR: CorpID匹配不正确")
}