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
52d31465
authored
Nov 24, 2022
by
孙龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
合同
parent
6d8e4ac5
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/Controllers/OrderController.php
app/Admin/Controllers/Api/OrderApiController.php
View file @
52d31465
...
@@ -26,7 +26,7 @@ class OrderApiController extends BaseController
...
@@ -26,7 +26,7 @@ class OrderApiController extends BaseController
$params
=
$request
->
all
();
$params
=
$request
->
all
();
$type
=
arrayGet
(
$params
,
"type"
);
$type
=
arrayGet
(
$params
,
"type"
);
$order_id
=
1
;
$order_id
=
69
;
$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/Controllers/OrderController.php
View file @
52d31465
...
@@ -184,7 +184,7 @@ style
...
@@ -184,7 +184,7 @@ style
<<<JS
<<<JS
$('.test_item').click(function () {
$('.test_item').click(function () {
console.log($(this).data().id);
console.log($(this).data().id);
window.location.href="/a
dmin/a
pi/order_download?type="+$(this).data().id+"&order_id="+$(this).data().orderid
window.location.href="/api/order_download?type="+$(this).data().id+"&order_id="+$(this).data().orderid
});
});
JS
JS
);
);
...
...
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