Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
semour
/
semour_admin
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
016c1778
authored
Dec 05, 2022
by
孙龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
订单导出
parent
722e3680
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
app/Admin/Controllers/Api/OrderApiController.php
app/Admin/Service/OrderService.php
app/Admin/Controllers/Api/OrderApiController.php
View file @
016c1778
...
@@ -27,7 +27,7 @@ class OrderApiController extends BaseController
...
@@ -27,7 +27,7 @@ class OrderApiController extends BaseController
$params
=
$request
->
all
();
$params
=
$request
->
all
();
$type
=
arrayGet
(
$params
,
"type"
);
$type
=
arrayGet
(
$params
,
"type"
);
$order_id
=
69
;
$order_id
=
203
;
$orderAddressList
=
OrderService
::
getOrderAddress
(
$order_id
);
$orderAddressList
=
OrderService
::
getOrderAddress
(
$order_id
);
$orderAddressList
=
arrayChangeKeyByField
(
$orderAddressList
,
"order_address_type"
);
$orderAddressList
=
arrayChangeKeyByField
(
$orderAddressList
,
"order_address_type"
);
// dump($orderAddressList);
// dump($orderAddressList);
...
...
app/Admin/Service/OrderService.php
View file @
016c1778
...
@@ -47,7 +47,7 @@ class OrderService extends BaseService
...
@@ -47,7 +47,7 @@ class OrderService extends BaseService
}
}
}
}
$orderList
[
"order_items"
]
=
$orderItems
;
$orderList
[
"order_items"
]
=
$orderItems
;
$orderList
[
"total_amount"
]
=
$orderList
[
"order_amount"
]
+
$orderList
[
"payServiceFee"
]
+
$orderList
[
"carriage"
]
+
$orderList
[
"carriage"
]
;
$orderList
[
"total_amount"
]
=
$orderList
[
"order_amount"
]
+
$orderList
[
"payServiceFee"
]
+
$orderList
[
"carriage"
];
//支付手续费
//支付手续费
$orderList
[
"payServiceFee_format"
]
=
decimal_number_format
(
$orderList
[
"payServiceFee"
],
DIGITS_TWO
,
2
);
$orderList
[
"payServiceFee_format"
]
=
decimal_number_format
(
$orderList
[
"payServiceFee"
],
DIGITS_TWO
,
2
);
//运费
//运费
...
...
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