删除无用代码
This commit is contained in:
parent
09a6c38a39
commit
a3467fa5b3
@ -2,10 +2,8 @@
|
|||||||
|
|
||||||
include_once "endecrypt/wxBizMsgCrypt.php";
|
include_once "endecrypt/wxBizMsgCrypt.php";
|
||||||
|
|
||||||
|
|
||||||
class KefuController {
|
class KefuController {
|
||||||
|
|
||||||
|
|
||||||
protected function getRedis($accountid)
|
protected function getRedis($accountid)
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -267,7 +265,7 @@ class KefuController {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function valid()
|
private function valid()
|
||||||
{
|
{
|
||||||
|
|
||||||
$echoStr = $_REQUEST['echostr'];
|
$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)
|
private function sendMsgSomeUser($arrayInfo)
|
||||||
{
|
{
|
||||||
|
|
||||||
foreach($arrayInfo as $userInfo) {
|
foreach($arrayInfo as $userInfo) {
|
||||||
|
|
||||||
$shareInfo = require('../config/kefu.share.config.php');
|
$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" ];
|
$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);
|
$r = $this->getRedis($accountid);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user