|
@@ -2087,18 +2087,18 @@ class Prpcrypt
|
|
|
{
|
|
|
public $key;
|
|
|
|
|
|
+ function __construct($k) {
|
|
|
+ $this->key = base64_decode($k . "=");
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
- * 兼容老版本php构造函数
|
|
|
+ * 兼容老版本php构造函数,不能在 __construct() 方法前边,否则报错
|
|
|
*/
|
|
|
function Prpcrypt($k)
|
|
|
{
|
|
|
$this->key = base64_decode($k . "=");
|
|
|
}
|
|
|
|
|
|
- function __construct($k) {
|
|
|
- $this->key = base64_decode($k . "=");
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* 对明文进行加密
|
|
|
* @param string $text 需要加密的明文
|