删除消息加密函数
This commit is contained in:
parent
873a8e06af
commit
60800a4d49
@ -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)
|
private function sendKefuMsg($accountid, $data)
|
||||||
{
|
{
|
||||||
$access_token = $this->getAccessToken($accountid);
|
$access_token = $this->getAccessToken($accountid);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user