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
78b6d1b4
authored
Nov 30, 2022
by
SUDPTDUBLXEROFX\Administrator
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
更新订单详情
parent
f526b232
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
app/Http/Services/OrderService.php
app/Http/Services/OrderService.php
View file @
78b6d1b4
...
...
@@ -75,6 +75,10 @@ class OrderService
#订单地址
$shippingAddress
=
UserAddressModel
::
where
(
"address_id"
,
$shipping_address_id
)
->
first
();
$billingAddress
=
UserAddressModel
::
where
(
"address_id"
,
$billing_address_id
)
->
first
();
if
(
!
$shippingAddress
||
!
$billingAddress
){
throw
new
InvalidRequestException
(
"error: Address"
);
}
$addressData
=
[[
"address_id"
=>
$shipping_address_id
,
"user_id"
=>
$user_id
,
...
...
@@ -222,7 +226,7 @@ class OrderService
return
$order_id
;
}
catch
(
\Exception
$e
){
$con
->
rollback
();
throw
new
InvalidRequestException
(
$e
->
getMessage
()
.
$e
->
getFile
()
.
$e
->
getLine
()
);
throw
new
InvalidRequestException
(
$e
->
getMessage
());
}
}
...
...
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