コード例 #1
0
ファイル: UserBaseController.php プロジェクト: noikiy/php
 public function toLogin()
 {
     if (Util::inWeixin()) {
         $this->toWxLogin();
     } else {
         $this->toDefaultLogin();
     }
 }
コード例 #2
0
ファイル: UserBaseController.php プロジェクト: shaovie/php
 public function toLogin()
 {
     if (Util::inWeixin()) {
         $openid = $this->toWxLogin();
         if ($openid !== false) {
             if ($this->doLoginInWx($openid) === true) {
                 UserModel::onLoginOk(0, $openid);
             } else {
                 //
             }
         } else {
             //
         }
     } else {
         $this->toDefaultLogin();
     }
 }