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
9e3ae63f
Commit
9e3ae63f
authored
Sep 18, 2020
by
庄冰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
channel
parent
f7a0fa02
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
+3
-1
gsb-marketplat/app/base/db/models/configmag/launchchannel.js
+1
-0
gsb-marketplat/app/base/service/impl/media/needinfoSve.js
+2
-1
No files found.
gsb-marketplat/app/base/db/models/configmag/launchchannel.js
View file @
9e3ae63f
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
*/
*/
module
.
exports
=
(
db
,
DataTypes
)
=>
{
module
.
exports
=
(
db
,
DataTypes
)
=>
{
return
db
.
define
(
"launchchannel"
,
{
return
db
.
define
(
"launchchannel"
,
{
only_code
:
DataTypes
.
STRING
(
255
),
//渠道唯一码
code
:
DataTypes
.
STRING
(
100
),
//表单编码
code
:
DataTypes
.
STRING
(
100
),
//表单编码
name
:
DataTypes
.
STRING
(
100
),
//表单名称
name
:
DataTypes
.
STRING
(
100
),
//表单名称
notes
:
DataTypes
.
STRING
(
255
),
//备注
notes
:
DataTypes
.
STRING
(
255
),
//备注
...
...
gsb-marketplat/app/base/service/impl/media/needinfoSve.js
View file @
9e3ae63f
...
@@ -47,13 +47,14 @@ class NeedinfoService extends ServiceBase {
...
@@ -47,13 +47,14 @@ class NeedinfoService extends ServiceBase {
return
system
.
getResultFail
(
-
107
,
"联系电话不能为空!"
)
return
system
.
getResultFail
(
-
107
,
"联系电话不能为空!"
)
}
}
var
channel
=
await
this
.
launchchannelDao
.
model
.
findOne
({
var
channel
=
await
this
.
launchchannelDao
.
model
.
findOne
({
attributes
:[
"code"
,
"name"
],
attributes
:[
"code"
,
"name"
,
"only_code"
],
where
:{
code
:
ab
.
channel_code
},
raw
:
true
where
:{
code
:
ab
.
channel_code
},
raw
:
true
});
});
if
(
!
channel
||
!
channel
.
code
){
if
(
!
channel
||
!
channel
.
code
){
return
system
.
getResultFail
(
-
300
,
"渠道信息不存在"
)
return
system
.
getResultFail
(
-
300
,
"渠道信息不存在"
)
}
}
ab
[
"channel_name"
]
=
channel
.
name
;
ab
[
"channel_name"
]
=
channel
.
name
;
ab
[
"channel_only_code"
]
=
channel
.
only_code
||
""
;
return
ab
;
return
ab
;
}
}
//推送需求至队列
//推送需求至队列
...
...
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