Exemplo n.º 1
0
 /**
  * 初始化函数,获取加密与解密的Key
  */
 public static function init()
 {
     if (empty(self::$key)) {
         $global_conf = Registry::get('global_conf');
         self::$key = $global_conf['key'];
     }
 }