aa
This commit is contained in:
@@ -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)
|
c := NewDingTalkCrypto(a.GetCallbackToken(), string(a.GetCallbackAESKey()), a.corpID)
|
||||||
|
fmt.Println("1111111111111111111111111111111111111111111111111111")
|
||||||
return c.GetDecryptMsg(sign, timestr, nonce, msg)
|
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 {
|
if string(corpID) != c.SuiteKey {
|
||||||
return "", errors.New("ERROR: CorpID匹配不正确")
|
return "", errors.New("ERROR: CorpID匹配不正确")
|
||||||
}
|
}
|
||||||
|
fmt.Println("222222222222222222222222222222222222")
|
||||||
return string(plantText[:size]), nil
|
return string(plantText[:size]), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user