删除消息加密函数

This commit is contained in:
aozhiwei 2019-01-29 16:08:21 +08:00
parent 873a8e06af
commit 60800a4d49

View File

@ -198,21 +198,6 @@ class KefuController {
}
}
private function encryptJson()
{
$pc = new WXBizMsgCrypt(WEIXIN_TOKEN, WEIXIN_MSG_KEY, WEIXIN_APP_ID);
$encryptMsg = '';
$text = $postStr;
$errcode = $pc->encryptJsonMsg($text, $timeStamp, $nonce, $encryptMsg_str);
if ($errcode == 0) {
$encryptMsg = json_decode($encryptMsg_str, true);
$errcode = $pc->decryptJsonMsg($encryptMsg['MsgSignature'], $timeStamp, $nonce,
$encryptMsg_str, $postStr2);
} else {
}
}
private function sendKefuMsg($accountid, $data)
{
$access_token = $this->getAccessToken($accountid);