Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
services
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tencent
services
Commits
538cd6e9
Commit
538cd6e9
authored
Dec 31, 2019
by
xmy
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/ft-oem' into ft-oem
parents
9c17cbfc
fd43c955
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
src/Common/Config/CfgCenter.php
+0
-0
src/Common/Entity/User.php
+5
-0
src/Common/Lib/Xcrypt.php
+1
-4
No files found.
src/Common/Config/CfgCenter.php
View file @
538cd6e9
This diff is collapsed.
Click to expand it.
src/Common/Entity/User.php
View file @
538cd6e9
...
...
@@ -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
);
...
...
src/Common/Lib/Xcrypt.php
View file @
538cd6e9
...
...
@@ -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
::
get
Array
(
CfgCenter
::
ENCRYPT_KEY
);
if
(
empty
(
$key
)){
throw
new
\Exception
(
'加密密钥获取失败!'
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment