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
0bd803e8
Commit
0bd803e8
authored
Oct 16, 2020
by
任晓松
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改常用联系人
parent
bdb204af
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
center-order/app/base/service/impl/dbcorder/usuallycontactsSve.js
+10
-0
No files found.
center-order/app/base/service/impl/dbcorder/usuallycontactsSve.js
View file @
0bd803e8
...
...
@@ -58,6 +58,16 @@ class UsuallyContactsService extends ServiceBase {
if
(
Object
.
keys
(
actionBody
.
contacts
).
length
<
0
){
return
system
.
getResultFail
(
-
1
,
'信息不能为空'
);
}
let
params
=
{
channel_user_id
:
actionBody
.
channel_user_id
,
uapp_id
:
pobj
.
appInfo
.
uapp_id
,
type
:
actionBody
.
type
,
contact_name
:
actionBody
.
contact_name
}
let
item
=
await
this
.
findOne
(
params
);
if
(
item
){
return
system
.
getResultFail
(
-
1
,
'联系人已存在,请勿重复添加'
)
}
let
obj
=
{
id
:
actionBody
.
id
,
uapp_id
:
pobj
.
appInfo
.
uapp_id
,
...
...
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