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
20bdcd85
Commit
20bdcd85
authored
Sep 08, 2020
by
兰国旗
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
laolan
parent
c7bd2282
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
33 deletions
+4
-33
gsb-marketplat/app/base/api/impl/action/mediaaggregation.js
+3
-32
gsb-marketplat/app/base/service/impl/mediaaggregation/mediaaggregationSve.js
+1
-1
No files found.
gsb-marketplat/app/base/api/impl/action/mediaaggregation.js
View file @
20bdcd85
...
...
@@ -37,36 +37,6 @@ class Mediaaggregation extends APIBase {
case
"addbrowsingrecord"
:
//添加页面访问记录
opResult
=
this
.
needinfoSve
.
addbrowsingrecord
(
pobj
);
break
;
default
:
opResult
=
system
.
getResult
(
null
,
"action_type参数错误"
);
break
;
}
return
opResult
;
}
/**
* 接口跳转-POST请求
* action_process 执行的流程
* action_type 执行的类型
* action_body 执行的参数
*/
async
mediAaggregationApi
(
pobj
,
qobj
,
req
)
{
if
(
!
pobj
.
actionType
)
{
return
system
.
getResult
(
null
,
"actionType参数不能为空"
);
}
var
result
=
await
this
.
mediAaggregationAction
(
pobj
,
pobj
.
actionType
,
req
);
return
result
;
}
async
mediAaggregationAction
(
pobj
,
action_type
,
req
)
{
var
opResult
=
null
;
var
self
=
this
;
pobj
.
xctx
=
req
.
xctx
;
switch
(
action_type
)
{
case
"test"
:
//测试
opResult
=
system
.
getResultSuccess
(
"测试接口"
);
break
;
case
"productList"
:
//服务列表
opResult
=
await
this
.
mediaaggregationSve
.
productList
(
pobj
);
break
;
...
...
@@ -74,7 +44,7 @@ class Mediaaggregation extends APIBase {
opResult
=
await
this
.
mediaaggregationSve
.
rotationChartList
(
pobj
);
break
;
case
"needProductList"
:
//留资表单产品
opResult
=
await
this
.
mediaaggregationSve
.
needProductList
(
pobj
);
opResult
=
await
this
.
mediaaggregationSve
.
needProductList
(
pobj
);
break
;
case
"popularRecommendationList"
:
//热门推荐列表
opResult
=
await
this
.
mediaaggregationSve
.
popularRecommendationList
(
pobj
);
...
...
@@ -89,10 +59,11 @@ class Mediaaggregation extends APIBase {
opResult
=
await
this
.
mediaaggregationSve
.
productDetail
(
pobj
);
break
;
case
"bottomMenuConfig"
:
//吸底菜单
opResult
=
await
this
.
mediaaggregationSve
.
bottomMenuConfig
(
pobj
);
opResult
=
await
this
.
mediaaggregationSve
.
bottomMenuConfig
(
pobj
);
break
;
default
:
opResult
=
system
.
getResult
(
null
,
"action_type参数错误"
);
break
;
}
return
opResult
;
}
...
...
gsb-marketplat/app/base/service/impl/mediaaggregation/mediaaggregationSve.js
View file @
20bdcd85
...
...
@@ -67,7 +67,7 @@ class MediaaggregationSve {
}
//产品详情
async
productDetail
(
pobj
)
{
if
(
!
pobj
||
!
pobj
.
actionBody
||
!
pobj
.
actionBody
.
product_type_code
)
{
if
(
!
pobj
||
!
pobj
.
actionBody
||
!
pobj
.
actionBody
.
product_type_code
||
!
pobj
.
actionBody
.
company_id
)
{
return
system
.
getResultFail
(
-
100
,
"参数错误"
);
}
...
...
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