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