Exemple #1
0
 /**
  * 解密会话
  *
  * @param string $key
  * @param bool $de
  * @return bool|mixed|string
  */
 protected function getAuth($key, $de = false)
 {
     $auth_type = $this->getConfig()->get('sys', 'auth');
     return HttpAuth::factory($auth_type, $this->http_auth_key)->get($key, $de);
 }
Exemple #2
0
 /**
  * 解密会话
  *
  * @param string $key
  * @param bool $de
  * @return bool|mixed|string
  */
 protected function getAuth($key, $de = false)
 {
     return HttpAuth::factory($this->getConfig()->get('sys', 'auth'), $this->getUrlEncryptKey('auth'))->get($key, $de);
 }