赞
踩
- <?php
-
- /**
- * wechat php test
- */
-
- //define your token
-
- define("TOKEN", "modige");
-
- $wechatObj = new wechatCallbackapiTest();
-
- $wechatObj->valid();
-
- class wechatCallbackapiTest{
-
- public function valid(){
-
- $echoStr = $_GET["echostr"];
-
- //valid signature , option
-
- if($this->checkSignature()){
-
- echo $echoStr;
-
- exit;
-
- }
-
- }
-
- public function responseMsg(){
-
- //get post data, May be due to the different environments
-
- $postStr = $GLOBALS["HTTP_RAW_POST_DATA"];
-
- //extract post data
-
- if (

Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。