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
c076fd96
Commit
c076fd96
authored
Aug 07, 2020
by
linboxuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zzzd add platformCode
parent
ef5dfe40
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
center-channel/app/base/api/impl/zzzd/zzzd.js
+9
-2
No files found.
center-channel/app/base/api/impl/zzzd/zzzd.js
View file @
c076fd96
...
...
@@ -39,7 +39,11 @@ class Zzzd extends WEBBase {
case
"getIndustries"
:
//获取一级大类列表
try
{
console
.
log
(
`获取一级大类列表 参数:`
+
JSON
.
stringify
(
pobj
.
actionBody
));
let
_industryOne
=
await
this
.
redisClient
.
get
(
"industryOne"
);
if
(
!
pobj
.
actionBody
.
platformCode
)
{
return
system
.
getResult
(
null
,
`平台ID不能为空`
)
}
// 2020 0807 林 修改 rediskey 增加platformCode 平台ID必填参数
let
_industryOne
=
await
this
.
redisClient
.
get
(
"industryOne"
+
pobj
.
actionBody
.
platformCode
);
if
(
_industryOne
){
opResult
=
system
.
getResult
(
JSON
.
parse
(
_industryOne
));
console
.
log
(
"redis数据:"
+
_industryOne
);
...
...
@@ -58,9 +62,12 @@ class Zzzd extends WEBBase {
if
(
!
pobj
.
actionBody
.
industryId
){
return
system
.
getResult
(
null
,
`一级行业ID不能为空`
)
}
if
(
!
pobj
.
actionBody
.
platformCode
)
{
return
system
.
getResult
(
null
,
`平台ID不能为空`
)
}
try
{
// await this.redisClient.delete(`industryTwo:${pobj.actionBody.industryId}`);
let
_industryTwo
=
await
this
.
redisClient
.
get
(
`industryTwo:
${
pobj
.
actionBody
.
industryId
}
`
);
let
_industryTwo
=
await
this
.
redisClient
.
get
(
`industryTwo:
${
pobj
.
actionBody
.
industryId
}
`
+
pobj
.
actionBody
.
platformCode
);
if
(
_industryTwo
){
opResult
=
system
.
getResult
(
JSON
.
parse
(
_industryTwo
));
console
.
log
(
"redis数据:"
+
_industryTwo
);
...
...
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