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
3c604653
authored
Dec 23, 2022
by
SUDPTDUBLXEROFX\Administrator
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
钉钉消息通知
parent
1c15a612
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
app/Http/Services/OrderService.php
app/Http/Services/OrderService.php
View file @
3c604653
...
...
@@ -4,6 +4,7 @@ namespace App\Http\Services;
use
App\Exceptions\InvalidRequestException
;
use
App\Http\Models\User\TaxInfoModel
;
use
App\Models\Cms\CmsUserModel
;
use
App\Models\OrderAddressModel
;
use
App\Models\OrderItemsModel
;
use
App\Models\OrderModel
;
...
...
@@ -227,7 +228,13 @@ class OrderService
$con
->
commit
();
#发送钉钉消息
$saleInfo
=
$userInfo
[
"sale_id"
];
$saleInfo
=
CmsUserModel
::
getInfoByUserId
(
$userInfo
[
"sale_id"
]);
if
(
$saleInfo
[
"mobile"
]){
SendMsg
(
$data
,
'semour_order'
,[
$saleInfo
[
"mobile"
]],
0
);
}
if
(
$saleInfo
[
"email"
]){
SendMsg
(
$data
,
'semour_order'
,[
$saleInfo
[
"email"
]],
1
);
}
return
$order_id
;
}
catch
(
\Exception
$e
){
...
...
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