Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
朱继来
/
后台订单管理
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
6abb2f02
authored
Dec 27, 2019
by
allen
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改字段名称
parent
7142951c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
app/Http/Controllers/ApiController.php
app/Http/Controllers/OrderController.php
app/Http/Controllers/ApiController.php
View file @
6abb2f02
...
...
@@ -193,11 +193,11 @@ class ApiController extends Controller
$data
[
'id'
]
=
$request
->
input
(
'id'
);
$data
[
'remarks'
]
=
$request
->
input
(
'remarks'
);
$data
[
'buyer
I
d'
]
=
$request
->
input
(
'userId'
);
//采购id
$data
[
'buyer
_i
d'
]
=
$request
->
input
(
'userId'
);
//采购id
$data
[
'batch'
]
=
$request
->
input
(
'batch'
);
//采购id
if
(
$data
[
'buyer
I
d'
]
==
-
1
){
unset
(
$data
[
'buyer
I
d'
]);
if
(
$data
[
'buyer
_i
d'
]
==
-
1
){
unset
(
$data
[
'buyer
_i
d'
]);
}
...
...
app/Http/Controllers/OrderController.php
View file @
6abb2f02
...
...
@@ -780,7 +780,7 @@ Class OrderController extends Controller
}
foreach
(
$info
[
'order_items_info'
]
as
$key
=>
$value
)
{
$data
[]
=
$value
[
'buyerid'
];
$data
[]
=
$value
[
'buyer
_
id'
];
}
...
...
@@ -793,7 +793,7 @@ Class OrderController extends Controller
foreach
(
$name_data
as
$k
=>
$v
)
{
if
(
$v
[
'userId'
]
==
$value
[
'buyerid'
]){
if
(
$v
[
'userId'
]
==
$value
[
'buyer
_
id'
]){
$info
[
'order_items_info'
][
$key
][
'buyerName'
]
=
$v
[
'name'
];
$info
[
'order_items_info'
][
$key
][
'send_email'
]
=
$v
[
'email'
];
break
;
//找到了就不必再循环这个数组了
...
...
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