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
b1fc27e3
Commit
b1fc27e3
authored
Aug 07, 2020
by
任晓松
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
5c98671d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
gsb-marketplat/app/base/service/impl/configmag/launchchannelSve.js
+2
-2
gsb-marketplat/app/base/system.js
+2
-2
No files found.
gsb-marketplat/app/base/service/impl/configmag/launchchannelSve.js
View file @
b1fc27e3
...
...
@@ -27,7 +27,7 @@ class LaunchchannelService extends ServiceBase {
}
let
searchResult
=
await
this
.
findOne
(
whereParams
,[]);
if
(
searchResult
){
return
system
.
getResultFail
(
-
1
,
'当前渠道已经存在,请勿重复添加'
)
return
null
;
}
let
channelData
=
{
name
:
pobj
.
name
,
...
...
@@ -37,7 +37,7 @@ class LaunchchannelService extends ServiceBase {
company_id
:
pobj
.
company_id
}
let
result
=
await
this
.
create
(
channelData
);
return
system
.
getResult
(
result
)
;
return
result
;
}
}
...
...
gsb-marketplat/app/base/system.js
View file @
b1fc27e3
...
...
@@ -131,10 +131,10 @@ class System {
* @param {*} okmsg 操作成功的描述
* @param {*} req 请求头信息
*/
static
getResult
(
data
,
opmsg
=
"操作成功"
,
req
)
{
static
getResult
(
data
,
opmsg
,
req
)
{
return
{
status
:
!
data
?
-
1
:
0
,
msg
:
opmsg
,
msg
:
data
?
'操作成功'
:
'操作失败'
,
data
:
data
,
bizmsg
:
req
&&
req
.
session
&&
req
.
session
.
bizmsg
?
req
.
session
.
bizmsg
:
"empty"
};
...
...
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