Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
semour
/
semour_web
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
59a0af0d
authored
Feb 14, 2023
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
邮箱服务器
parent
c8d224ea
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
app/Http/Services/UserService.php
app/Http/Services/UserService.php
View file @
59a0af0d
...
@@ -46,10 +46,13 @@ class UserService
...
@@ -46,10 +46,13 @@ class UserService
if
(
$updateRes
)
{
if
(
$updateRes
)
{
AutoAssignCustomerService
::
incAssignNumByDepartmentId
(
$assign
[
'department_id'
]);
AutoAssignCustomerService
::
incAssignNumByDepartmentId
(
$assign
[
'department_id'
]);
}
}
//发送提醒邮件
$salesEmail
=
CmsUserModel
::
where
(
'userId'
,
$salesId
)
->
value
(
'email'
);
$salesEmail
=
CmsUserModel
::
where
(
'userId'
,
$salesId
)
->
value
(
'email'
);
try
{
//发送提醒邮件
Mail
::
to
(
$salesEmail
)
->
send
(
new
UserRegisterNotification
());
Mail
::
to
(
$salesEmail
)
->
send
(
new
UserRegisterNotification
());
}
catch
(
\Exception
$exception
)
{
\Log
::
error
(
'销售员的邮箱不存在:'
.
$salesEmail
);
}
return
$userId
;
return
$userId
;
}
}
...
...
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