Example #1
0
 /**
  * 判断是否已经授权
  *
  * @return boolean
  */
 public function authorized()
 {
     if ($this->authResult) {
         return true;
     }
     if (!($code = Wechat::input('code', null))) {
         return false;
     }
     return (bool) $this->authorize($code);
 }