Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
朱继来
/
后台订单管理
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ace905b2
authored
Aug 21, 2019
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整客服池新增功能
parent
f2eb9d1f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
app/Model/KefuModel.php
app/Model/KefuModel.php
View file @
ace905b2
...
@@ -90,7 +90,8 @@ class KefuModel extends Model
...
@@ -90,7 +90,8 @@ class KefuModel extends Model
if
(
$exists
)
return
[
1
,
'客服已存在'
];
if
(
$exists
)
return
[
1
,
'客服已存在'
];
$data
[
'sale_id'
]
=
$sales
->
userId
;
$sale_id
=
$sales
->
userId
;
$data
[
'sale_name'
]
=
$sales
->
name
;
$data
[
'sale_name'
]
=
$sales
->
name
;
$data
[
'email'
]
=
$email
;
$data
[
'email'
]
=
$email
;
$data
[
'operator_id'
]
=
$request
->
user
->
userId
;
$data
[
'operator_id'
]
=
$request
->
user
->
userId
;
...
@@ -100,7 +101,7 @@ class KefuModel extends Model
...
@@ -100,7 +101,7 @@ class KefuModel extends Model
if
(
!
$count
)
$data
[
'status'
]
=
1
;
// 待分配
if
(
!
$count
)
$data
[
'status'
]
=
1
;
// 待分配
$res
=
$this
->
create
(
$data
);
$res
=
$this
->
updateOrCreate
([
'sale_id'
=>
$sale_id
],
$data
);
if
(
$res
===
false
)
return
[
1
,
'新增客服失败'
];
if
(
$res
===
false
)
return
[
1
,
'新增客服失败'
];
...
...
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