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
a9966f1c
Commit
a9966f1c
authored
Dec 07, 2018
by
xmy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
# 1.0.34
- 修改加密方法密钥
parent
576a37d3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
UPGRADE.md
+1
-1
src/Common/Lib/Xcrypt.php
+1
-2
No files found.
UPGRADE.md
View file @
a9966f1c
# 1.0.3
3
# 1.0.3
4
-
修改加密方法密钥
-
修改加密方法密钥
# 1.0.32
# 1.0.32
-
订单对账接口
-
订单对账接口
...
...
src/Common/Lib/Xcrypt.php
View file @
a9966f1c
<?php
<?php
namespace
Hdll\Services\Common\Lib
;
namespace
Hdll\Services\Common\Lib
;
use
mysql_xdevapi\Exception
;
use
Swoft\App
;
use
Swoft\App
;
use
Swoft\Redis\Redis
;
use
Swoft\Redis\Redis
;
...
@@ -45,7 +44,7 @@ class Xcrypt
...
@@ -45,7 +44,7 @@ class Xcrypt
$redis
=
App
::
getBean
(
Redis
::
class
);
$redis
=
App
::
getBean
(
Redis
::
class
);
$key
=
$redis
->
get
(
self
::
CRYPT
);
$key
=
$redis
->
get
(
self
::
CRYPT
);
if
(
empty
(
$key
)){
if
(
empty
(
$key
)){
throw
new
Exception
(
'加密密钥获取失败!'
);
throw
new
\
Exception
(
'加密密钥获取失败!'
);
}
}
return
$key
;
return
$key
;
}
}
...
...
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