本文整理汇总了PHP中wechatCallbackapiTest::Run方法的典型用法代码示例。如果您正苦于以下问题:PHP wechatCallbackapiTest::Run方法的具体用法?PHP wechatCallbackapiTest::Run怎么用?PHP wechatCallbackapiTest::Run使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类wechatCallbackapiTest
的用法示例。
在下文中一共展示了wechatCallbackapiTest::Run方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
<?php
define('TOKEN', 'weixin');
define('APP_ID', 'wx2bac5dc50633192c');
define('APP_SECRET', '8a7b3729c3187dd130a1e77c515e5025');
$wechatObj = new wechatCallbackapiTest();
if (isset($_GET['echostr'])) {
$wechatObj->valid();
} else {
//$wechatObj->responseMsg();
$wechatObj->Run();
}
//$wechatObj->Run();
class wechatCallbackapiTest
{
private $fromUsername;
private $toUsername;
private $time;
private $keyword;
private $app_id;
private $app_secret;
private $data;
private $token;
public function __construct()
{
$this->app_id = APP_ID;
$this->app_secret = APP_SECRET;
$this->token = TOKEN;
$this->data = '{' . '"button":[' . '{"name":"马上报修","type":"view","url":"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx2bac5dc50633192c&redirect_uri=http%3a%2f%2frepairtest.sinaapp.com%2fTiketRaise.php&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect"},' . '{"name":"工单查询","type":"view","url":"http://repairtest.sinaapp.com/ServiceDesk.php"}' . ']}';
}
/**