define("TOKEN", "chuangenit");
$wechatObj = new wechatCallbackapiTest();
$wechatObj->weixin_run(); //执行接收器方法
class wechatCallbackapiTest
{
private $fromUsername;
private $toUsername;
private $times;
private $keyword;
public function weixin_run(){
$this->responseMsg();
$arr[]=array("PHP100也不错!
","aa","http://www.doczj.com/doc/1ea2296c2b160b4e777fcf1a.html/pic/hj/s_4.png","http://www.chuangen.c om");
$arr[]=array("PHP100也不错!","aa","
/pic/hj/s_4.png","http://www.doczj.com/doc/1ea2296c2b160b4e777fcf1a.html");
$arr[]=array("PHP100也不错!","aa","
/pic/hj/s_4.png","http://www.doczj.com/doc/1ea2296c2b160b4e777fcf1a.html");
$this->fun_xml("news",$arr,array(2,0));
}
function t($n){
include("t_api.php");
$c_name=$t_api[$n];
$json=file_get_contents("/data/101110310.html");http://www.doczj.com/doc/1ea2296c2b160b4e777fcf1a.html return json_decode($json);
}
public function valid()
{
$echoStr = $_GET["echostr"];
//valid signature , option
if($this->checkSignature()){
echo $echoStr;