Commit 6abb2f02 by allen

修改字段名称

parent 7142951c
......@@ -193,11 +193,11 @@ class ApiController extends Controller
$data['id'] = $request->input('id');
$data['remarks'] = $request->input('remarks');
$data['buyerId'] = $request->input('userId');//采购id
$data['buyer_id'] = $request->input('userId');//采购id
$data['batch'] = $request->input('batch');//采购id
if($data['buyerId'] == -1){
unset($data['buyerId']);
if($data['buyer_id'] == -1){
unset($data['buyer_id']);
}
......
......@@ -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;//找到了就不必再循环这个数组了
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment