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
2099b35c
Commit
2099b35c
authored
Aug 13, 2020
by
庄冰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
link
parent
b265fa81
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
6 deletions
+18
-6
gsb-marketplat/app/base/controller/impl/templatemag/templatelinkCtl.js
+14
-0
gsb-marketplat/app/base/service/impl/template/templatelinkSve.js
+4
-6
No files found.
gsb-marketplat/app/base/controller/impl/templatemag/templatelinkCtl.js
View file @
2099b35c
...
...
@@ -28,6 +28,20 @@ class TemplatelinkCtl extends CtlBase {
let
result
=
await
this
.
templatelinkSve
.
createTemplateLink
(
pobj
);
return
result
;
}
/**
* 修改投放状态
* @param {*} pobj
*/
async
updateLaunchStatus
(
pobj
){
let
result
=
await
this
.
templatelinkSve
.
updateLaunchStatus
(
pobj
);
return
result
;
}
async
delete
(
pobj
,
qobj
,
req
)
{
const
up
=
await
this
.
templatelinkSve
.
deleteTemplateLink
(
pobj
);
return
system
.
getResult
(
up
);
}
}
module
.
exports
=
TemplatelinkCtl
;
gsb-marketplat/app/base/service/impl/template/templatelinkSve.js
View file @
2099b35c
...
...
@@ -205,8 +205,7 @@ class TemplatelinkService extends ServiceBase {
* @param {*} pobj
*/
async
updateLaunchStatus
(
pobj
){
var
ab
=
pobj
.
actionBody
;
var
xctx
=
pobj
.
xctx
;
var
ab
=
pobj
;
if
(
!
ab
){
return
system
.
getResultFail
(
-
100
,
"参数错误"
);
}
...
...
@@ -233,16 +232,15 @@ class TemplatelinkService extends ServiceBase {
* @param {*} pobj
*/
async
deleteTemplateLink
(
pobj
){
var
ab
=
pobj
.
actionBody
;
var
xctx
=
pobj
.
xctx
;
var
ab
=
pobj
;
if
(
!
ab
){
return
system
.
getResultFail
(
-
100
,
"参数错误"
);
}
if
(
!
ab
.
code
){
if
(
!
ab
.
id
){
return
system
.
getResultFail
(
-
101
,
"链接编码不能为空"
);
}
var
linkinfo
=
await
this
.
dao
.
model
.
findOne
({
where
:{
code
:
ab
.
code
},
raw
:
true
where
:{
id
:
ab
.
id
},
raw
:
true
});
if
(
!
linkinfo
||
!
linkinfo
.
id
){
return
system
.
getResultFail
(
-
300
,
"未知模板链接"
);
...
...
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