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
07f343f6
Commit
07f343f6
authored
Sep 09, 2020
by
庄冰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
getSourceChannelInfo
parent
6c43fe21
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
gsb-marketplat/app/base/api/impl/action/mediaaggregation.js
+4
-0
gsb-marketplat/app/base/service/impl/configmag/launchchannelSve.js
+20
-0
No files found.
gsb-marketplat/app/base/api/impl/action/mediaaggregation.js
View file @
07f343f6
...
@@ -8,6 +8,7 @@ class Mediaaggregation extends APIBase {
...
@@ -8,6 +8,7 @@ class Mediaaggregation extends APIBase {
super
();
super
();
this
.
needinfoSve
=
system
.
getObject
(
"service.media.needinfoSve"
);
this
.
needinfoSve
=
system
.
getObject
(
"service.media.needinfoSve"
);
this
.
mediaaggregationSve
=
system
.
getObject
(
"service.mediaaggregation.mediaaggregationSve"
);
this
.
mediaaggregationSve
=
system
.
getObject
(
"service.mediaaggregation.mediaaggregationSve"
);
this
.
launchchannelSve
=
system
.
getObject
(
"service.configmag.launchchannelSve"
);
}
}
/**
/**
* 接口跳转-POST请求
* 接口跳转-POST请求
...
@@ -37,6 +38,9 @@ class Mediaaggregation extends APIBase {
...
@@ -37,6 +38,9 @@ class Mediaaggregation extends APIBase {
case
"addbrowsingrecord"
:
//添加页面访问记录
case
"addbrowsingrecord"
:
//添加页面访问记录
opResult
=
this
.
needinfoSve
.
addbrowsingrecord
(
pobj
);
opResult
=
this
.
needinfoSve
.
addbrowsingrecord
(
pobj
);
break
;
break
;
case
"getSourceChannelInfo"
:
//获取来源渠道信息
opResult
=
this
.
launchchannelSve
.
getSourceChannelInfo
(
pobj
);
break
;
case
"productList"
:
//服务列表
case
"productList"
:
//服务列表
opResult
=
await
this
.
mediaaggregationSve
.
productList
(
pobj
);
opResult
=
await
this
.
mediaaggregationSve
.
productList
(
pobj
);
...
...
gsb-marketplat/app/base/service/impl/configmag/launchchannelSve.js
View file @
07f343f6
...
@@ -71,6 +71,25 @@ class LaunchchannelService extends ServiceBase {
...
@@ -71,6 +71,25 @@ class LaunchchannelService extends ServiceBase {
let
de
=
await
this
.
delete
(
pobj
);
let
de
=
await
this
.
delete
(
pobj
);
return
system
.
getResult
(
de
);
return
system
.
getResult
(
de
);
}
}
//根据渠道编码获取渠道信息(用于媒体聚合页移动端)
async
getSourceChannelInfo
(
pobj
){
if
(
!
pobj
||
!
pobj
.
actionBody
){
return
system
.
getResultSuccess
(
-
100
,
"参数错误"
);
}
if
(
!
pobj
.
actionBody
.
code
){
return
system
.
getResultSuccess
(
-
101
,
"来源渠道编码错误"
);
}
var
channelinfo
=
await
this
.
dao
.
model
.
findOne
({
attributes
:[
"code"
,
"name"
],
where
:{
code
:
pobj
.
actionBody
.
code
},
raw
:
true
});
if
(
!
channelinfo
||
!
channelinfo
.
code
){
return
system
.
getResultFail
(
-
300
,
"未知渠道"
)
}
return
system
.
getResultSuccess
(
channelinfo
);
}
}
}
module
.
exports
=
LaunchchannelService
;
module
.
exports
=
LaunchchannelService
;
\ No newline at end of file
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