Commit c8d224ea by 杨树贤

Merge branch 'feature/ysx/用户注册发送销售提醒/20230213' into dev/ver/1.0.0

parents fddf8d7f 86a2b1c1
......@@ -2,11 +2,14 @@
namespace App\Http\Services;
use App\Mail\SendCode;
use App\Mail\UserRegisterNotification;
use App\Models\Cms\CmsUserModel;
use App\Models\CountryModel;
use App\Models\UserModel;
use Carbon\Carbon;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Mail;
use Illuminate\Support\Facades\Redis;
class UserService
......@@ -44,6 +47,10 @@ class UserService
AutoAssignCustomerService::incAssignNumByDepartmentId($assign['department_id']);
}
//发送提醒邮件
$salesEmail = CmsUserModel::where('userId', $salesId)->value('email');
Mail::to($salesEmail)->send(new UserRegisterNotification());
return $userId;
}
}
<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
class UserRegisterNotification extends Mailable
{
use Queueable, SerializesModels;
public $code;
public $msg;
/**
* Create a new message instance.
*
* @return void
*/
public function __construct()
{
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
return $this->view('emails.user_register_notification')->subject('深贸网站-新用户注册');
}
}
......@@ -22,7 +22,7 @@
</div>
<div class="itemftsm">
<p class="row"><b>A member of</b><img src="/assets/images/home/lxlogo.png" alt="" class="logoftsm2"></p>
<a href="javascript:void(0)" class="fz-14">Copyright © 2022 SEMOUR ELECTRONICS All rights reserved.</a>
<a href="javascript:void(0)" class="fz-14">Copyright © 2023 SEMOUR ELECTRONICS All rights reserved.</a>
</div>
</div>
......
......@@ -56,7 +56,7 @@
</div>
<div class="itemftsp">
<p class="row"><span>A member of</span> <img src="/assets/images/home/lxlogo.png" alt="" class="logoftsm2"></p>
<span>Copyright © 2022 SEMOUR ELECTRONICS All rights reserved.</span>
<span>Copyright © 2023 SEMOUR ELECTRONICS All rights reserved.</span>
</div>
</div>
......
......@@ -2,7 +2,7 @@
<html>
<head>
<meta charset="utf-8">
<title>菜鸟教程(runoob.com)</title>
<title>Email Code</title>
</head>
<body>
......
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>User Register Notification</title>
</head>
<body>
<div style="padding: 100px">
<div>
<img style="width: 25%;" src="https://img.ichunt.com/images/ichunt/202211/22/c0a944d0d89fde3ba67477369eac1bb2.png">
</div>
<div style="margin-top: 50px">
<p>系统为您分配深贸网站的新注册用户,请及时跟进。(快捷跳转链接:<a target="_blank" href="http://admin.semour.net/admin/user">http://admin.semour.net/admin/users</a></p>
</div>
</div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- CSRF Token -->
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>@yield('title')Electronics Supply Chain Solution Provider</title>
@include("common.css")
@yield('css')
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-FEW2RM8MTJ"></script>
<script>
......@@ -9,16 +18,26 @@
gtag('js', new Date());
gtag('config', 'G-FEW2RM8MTJ');
</script>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- CSRF Token -->
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>@yield('title')Electronics Supply Chain Solution Provider</title>
@include("common.css")
<!-- Meta Pixel Code -->
<script>
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window, document,'script',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '492184879780601');
fbq('track', 'PageView');
</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=492184879780601&ev=PageView&noscript=1"
/></noscript>
<!-- End Meta Pixel Code -->
@yield('css')
</head>
<body>
<div id="app">
......
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- CSRF Token -->
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>@yield('title')Electronics Supply Chain Solution Provider SEMOUR</title>
@include("common.css")
@yield('css')
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-FEW2RM8MTJ"></script>
<script>
......@@ -10,15 +19,23 @@
gtag('config', 'G-FEW2RM8MTJ');
</script>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- CSRF Token -->
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>@yield('title')Electronics Supply Chain Solution Provider SEMOUR</title>
@include("common.css")
@yield('css')
<!-- Meta Pixel Code -->
<script>
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window, document,'script',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '492184879780601');
fbq('track', 'PageView');
</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=492184879780601&ev=PageView&noscript=1"
/></noscript>
<!-- End Meta Pixel Code -->
</head>
<body>
<div id="app">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment