예제 #1
0
파일: passport.php 프로젝트: beyondye/ENPHP
 public function wechat()
 {
     require_once APP_DIR . "vendors/auth/wechat.php";
     $wechat = new \Wechat();
     $this->output->redirect($wechat->getAuthorizeUrl());
 }
예제 #2
0
파일: user.php 프로젝트: beyondye/ENPHP
 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]);
 }