Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
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
蒋勇
zhichan
Commits
1217865e
Commit
1217865e
authored
Jul 07, 2020
by
linboxuan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'center-channel' of
http://gitlab.gongsibao.com/jiangyong/zhichan
into center-channel
parents
35212fb9
6620efd5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
center-channel/app/base/api/impl/nmaction/name.js
+4
-4
center-channel/app/base/service/impl/utilsSve/utilsProductSve.js
+1
-1
No files found.
center-channel/app/base/api/impl/nmaction/name.js
View file @
1217865e
...
...
@@ -33,7 +33,7 @@ class NameAPI extends WEBBase{
case
"createName"
:
//起名
opResult
=
await
this
.
addOrderDelivery
(
pobj
,
pobj
.
actionBody
);
break
;
case
"getNameDetail"
:
case
"getNameDetail"
:
//详情
opResult
=
await
this
.
getNameDetail
(
pobj
);
break
;
default
:
...
...
@@ -50,7 +50,7 @@ class NameAPI extends WEBBase{
async
getCache
(){
let
cacheResult
=
{};
cacheResult
.
cache
=
cacheJson
return
cacheResult
;
return
system
.
getResult
(
cacheResult
)
;
}
/**
...
...
@@ -63,13 +63,13 @@ class NameAPI extends WEBBase{
let
result
=
await
this
.
redisClient
.
get
(
key
)
if
(
result
){
preResult
.
preference
=
JSON
.
parse
(
result
);
return
preResult
;
return
system
.
getResult
(
preResult
)
;
}
else
{
const
data
=
await
this
.
restPostUrl
({},
this
.
centerCacheUrl
+
"preference_select"
);
if
(
data
.
code
==
200
){
await
this
.
redisClient
.
set
(
key
,
JSON
.
stringify
(
data
.
data
),
2
*
3600
)
preResult
.
preference
=
data
.
data
return
preResult
;
return
system
.
getResult
(
preResult
)
;
}
}
}
...
...
center-channel/app/base/service/impl/utilsSve/utilsProductSve.js
View file @
1217865e
...
...
@@ -47,7 +47,7 @@ class UtilsProductService extends AppServiceBase {
product_id
:
item
.
product_id
}
let
re
=
await
this
.
restPostUrl
(
pobj
,
url
);
item
.
price
=
re
.
data
.
price
;
item
.
price
=
re
.
data
?
re
.
data
.
price
:
0
;
}
return
list
;
}
...
...
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