Exemplo n.º 1
0
 public function wechat()
 {
     require_once APP_DIR . "vendors/auth/wechat.php";
     $wechat = new \Wechat();
     $this->output->redirect($wechat->getAuthorizeUrl());
 }
Exemplo n.º 2
0
 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]);
 }