diff --git a/webapp/controller/KefuController.class.php b/webapp/controller/KefuController.class.php index c56bada..a7d1212 100644 --- a/webapp/controller/KefuController.class.php +++ b/webapp/controller/KefuController.class.php @@ -2,10 +2,8 @@ include_once "endecrypt/wxBizMsgCrypt.php"; - class KefuController { - protected function getRedis($accountid) { @@ -267,7 +265,7 @@ class KefuController { } - public function valid() + private function valid() { $echoStr = $_REQUEST['echostr']; @@ -346,33 +344,8 @@ class KefuController { } } - public function mytest() - { - #error_log('mytest'); - $openid = $_REQUEST['openid']; - $shareInfo = require('../config/kefu.share.config.php'); - $miniprogrampateInfo = $shareInfo['1011']; - $data = array ( - "touser" => $openid, - "msgtype" => "miniprogrampage", - "miniprogrampage" => $miniprogrampateInfo - ); - $this->sendMsg($data, $_REQUEST['accountid']); - die(); - $content = '回复【111】领取奖励!'; - $data = array ( - "touser"=> $_REQUEST['openid'], - "msgtype"=>"text", - "text"=> array ("content" => $content) - ); - - - $this->sendMsg($data, $_REQUEST['accountid']); - } - private function sendMsgSomeUser($arrayInfo) { - foreach($arrayInfo as $userInfo) { $shareInfo = require('../config/kefu.share.config.php'); @@ -524,7 +497,7 @@ class KefuController { } } - public function responseMsg() + private function responseMsg() { $postStr_key = $GLOBALS ["HTTP_RAW_POST_DATA" ]; @@ -570,7 +543,7 @@ class KefuController { } - public function getAccessToken($accountid) + private function getAccessToken($accountid) { $r = $this->getRedis($accountid);