/** * 分析消息类型,并分发给对应的函数 * @return void */ public function run() { return WechatRequest::switchType($this->request); }
/** * 分析消息类型,并分发给对应的函数 * @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); }
/** * 分析消息类型,并分发给对应的函数 * @param string $request 参数名,默认为无参 * @return void */ public function run($request = false) { if ($request) { return $this->request; } return WechatRequest::switchType($this->request); }
/** * 释放当前类 */ public static function release() { self::$selfObject = null; }