Commit 538cd6e9 by xmy

Merge remote-tracking branch 'origin/ft-oem' into ft-oem

parents 9c17cbfc fd43c955
......@@ -37,6 +37,11 @@ class User
return $this->getValue('id');
}
public function getOemId()
{
return $this->getValue('oemId');
}
public function setTestFlag()
{
$this->setValue('testFlag', TestEnum::TEST_STORE_ID);
......
......@@ -8,9 +8,6 @@ use Swoft\Redis\Redis;
class Xcrypt
{
const CRYPT = 'cryptKey';
public static function encrypt(string $str, $key = '')
{
$str = serialize($str);
......@@ -42,7 +39,7 @@ class Xcrypt
}
private static function getKey(){
$key = CfgCenter::get(self::CRYPT);
$key = CfgCenter::getArray(CfgCenter::ENCRYPT_KEY);
if (empty($key)){
throw new \Exception('加密密钥获取失败!');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment