From a3467fa5b35c21f28b10b15822b106c9e8ba28eb Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 25 Jan 2019 14:37:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webapp/controller/KefuController.class.php | 33 ++-------------------- 1 file changed, 3 insertions(+), 30 deletions(-) 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);