diff --git a/webapp/controller/KefuController.class.php b/webapp/controller/KefuController.class.php index d0310ae..9fa147d 100644 --- a/webapp/controller/KefuController.class.php +++ b/webapp/controller/KefuController.class.php @@ -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);