Пример #1
0
 /**
  * 分析消息类型,并分发给对应的函数
  * @return void
  */
 public function run()
 {
     return WechatRequest::switchType($this->request);
 }
Пример #2
0
 /**
  * 分析消息类型,并分发给对应的函数
  * @return void
  */
 public function run()
 {
     $action = '';
     if (isset($_GET["requestAction"])) {
         $action = $_GET["requestAction"];
     } elseif (isset($_POST["requestAction"])) {
         $action = $_POST["requestAction"];
     }
     if (strlen($action)) {
         return $this->requestAction($action);
     }
     return WechatRequest::switchType($this->request);
 }
Пример #3
0
 /**
  * 分析消息类型,并分发给对应的函数
  * @param  string $request 参数名,默认为无参
  * @return void
  */
 public function run($request = false)
 {
     if ($request) {
         return $this->request;
     }
     return WechatRequest::switchType($this->request);
 }
Пример #4
0
 /**
  * 释放当前类
  */
 public static function release()
 {
     self::$selfObject = null;
 }