public function wechat() { require_once APP_DIR . "vendors/auth/wechat.php"; $wechat = new \Wechat(); $this->output->redirect($wechat->getAuthorizeUrl()); }
function wxlogin() { require_once APP_DIR . "vendors/auth/wechat.php"; $wechat = new \Wechat(); $url = $wechat->getAuthorizeUrl(); $this->output->view("login/wx_index", ['login_url' => $url]); }