Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
周少峰
2017-08-30 14:41:59 +0800
Commit
63e10e739cf2188513cb03e1d8b67b1c6ccc016c
2 parents
6f997b7e
1b623c73
Merge branch 'hotfix/add-cache' into gray
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
apps/product/models/detail-product-api.js
apps/product/models/detail-product-api.js
View file @
63e10e7
...
...
@@ -14,7 +14,7 @@ const uuid = require('uuid');
function
_cacheGet
(
key
)
{
return
cache
.
get
(
key
).
then
((
data
)
=>
{
if
(
data
)
{
return
JSON
.
parse
(
data
)
;
return
data
;
}
return
Promise
.
reject
();
...
...
Please
register
or
login
to post a comment