diff --git a/platformapi/dingdingapi/callback.go b/platformapi/dingdingapi/callback.go index f3eb4fbc..85087152 100644 --- a/platformapi/dingdingapi/callback.go +++ b/platformapi/dingdingapi/callback.go @@ -118,7 +118,7 @@ func (a *API) Encrypt(msg, timestamp, nonce string) (encryptedMsg, sign string, //buf.WriteString(a.corpID) //binResult, err := utils.AESCBCEncpryt(buf.Bytes(), []byte(aesKey), []byte(aesKey[:16])) //encryptedMsg = base64.StdEncoding.EncodeToString(binResult) - c := NewDingTalkCrypto(a.GetCallbackToken(), string(a.GetCallbackAESKey()), a.GetAppID()) + c := NewDingTalkCrypto(a.callbackToken, a.callbackAESKey, a.appID) return c.GetEncryptMsg(msg, timestamp, nonce) } @@ -135,7 +135,7 @@ func (a *API) Decrypt(sign, timestr, nonce, msg string) (decryptedMsg string, er // } // } //} - c := NewDingTalkCrypto(a.GetCallbackToken(), string(a.GetCallbackAESKey()), a.GetAppID()) + c := NewDingTalkCrypto(a.callbackToken, a.callbackAESKey, a.appID) return c.GetDecryptMsg(sign, timestr, nonce, msg) }