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
caf421cf
authored
Dec 05, 2022
by
SUDPTDUBLXEROFX\Administrator
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
运费
parent
ddd4ad70
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
app/Http/Services/OrderService.php
app/Http/Services/OrderService.php
View file @
caf421cf
...
...
@@ -310,7 +310,8 @@ class OrderService
$priceArr
=
array_column
(
$priceInfo
,
"price"
,
"price_type"
);
# $sub_total = OrderPriceModel::getOrderSubTotal($order_id);
$payment_surcharge_paypal
=
round
(
$merchandise_total
*
0.046
+
0.5
,
2
);
$shipping
=
\Arr
::
get
(
$priceArr
,
3
,
0
);
//运费
$payment_surcharge_paypal
=
round
((
$merchandise_total
*
$shipping
)
*
0.046
+
0.5
,
2
);
$ts
=
[
"order_id"
=>
$order_id
,
...
...
@@ -323,7 +324,7 @@ class OrderService
"email"
=>
\Arr
::
get
(
$receiveAddress
,
"email"
),
"phone"
=>
\Arr
::
get
(
$receiveAddress
,
"phone"
),
"shipping_address"
=>
\Arr
::
get
(
$receiveAddress
,
"detail_address"
),
"shipping"
=>
\Arr
::
get
(
$priceArr
,
3
,
0
)
,
//运费
"shipping"
=>
$shipping
,
//运费
"payment_surcharge_paypal"
=>
$payment_surcharge_paypal
,
//paypal 支付手续费
"payment_surcharge_ttl"
=>
35
,
//ttl 支付手续费
"merchandise_total"
=>
$merchandise_total
,
//商品总额
...
...
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