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
044beb1e
authored
Nov 30, 2022
by
肖康
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'dev/ver/1.0.0' of
http://git.ichunt.net/semour/semour_web
into dev/ver/1.0.0
parents
8eb22d44
78c676ea
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
app/Http/Controllers/Api/AuthApiController.php
app/Http/Services/OrderService.php
app/Http/Controllers/Api/AuthApiController.php
View file @
044beb1e
...
...
@@ -219,13 +219,13 @@ class AuthApiController extends Controller
$subject
=
config
(
'mail.from.name'
);
// return $this->setSuccessData($code);
//
Mail::to($email)->send(new SendCode($type, $code));
//
//错误处理
//
if (count(Mail::failures())) {
//
return $this->setError('Email code send failed');
//
}
Mail
::
to
(
$email
)
->
send
(
new
SendCode
(
$type
,
$code
));
//错误处理
if
(
count
(
Mail
::
failures
()))
{
return
$this
->
setError
(
'Email code send failed'
);
}
return
$this
->
setSuccess
(
'A verification code has been sent. Please enter the code below to continue. '
.
$code
);
return
$this
->
setSuccess
(
'A verification code has been sent. Please enter the code below to continue. '
);
}
}
app/Http/Services/OrderService.php
View file @
044beb1e
...
...
@@ -428,7 +428,7 @@ class OrderService
"finish_time"
=>
""
,
//交易成功时间
"shipping"
=>
\Arr
::
get
(
$priceArr
,
3
,
0
),
//运费
"payment_surcharge"
=>
\Arr
::
get
(
$priceArr
,
5
,
0
),
//支付手续费
"merchandise_total"
=>
$merchandise_total
,
//商品总额
"merchandise_total"
=>
round
(
$merchandise_total
,
2
)
,
//商品总额
"status"
=>
$orderInfo
[
"status"
],
"status_en"
=>
\Arr
::
get
(
OrderModel
::
$status
,
$orderInfo
[
"status"
],
""
),
"shipping_address"
=>
\Arr
::
get
(
$orderAddressArr
,
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