【类 型】:feat 获取定点列表
【原 因】: 【过 程】: 【影 响】:
This commit is contained in:
parent
a5d38e8b04
commit
c5b4ca0cda
@ -813,7 +813,7 @@ class AdminController extends PublicController
|
||||
/**
|
||||
* @description:获取订单详情
|
||||
*/
|
||||
public function getOrderShow()
|
||||
public function getOrderDetails()
|
||||
{
|
||||
if ($this->tokenShop_id != C('powerId')) {
|
||||
$where['shop_id'] = $this->tokenShop_id; //非总管理员 只返回自己的账户信息
|
||||
@ -822,9 +822,12 @@ class AdminController extends PublicController
|
||||
if ($_REQUEST['id']) {
|
||||
$where['id'] = $_REQUEST['id'];
|
||||
$orderDb = D('order');
|
||||
$field = array('id', 'order_sn', 'tel', 'total_price', 'refund_price', 'main_status', 'shipment_status', 'refund_status', 'order_time');
|
||||
$orderShow = $orderDb->where($where)->field($field)->find();
|
||||
echo json_encode(array('status' => 1, 'msg' => '访问成功', 'orderShow' => $orderShow));
|
||||
$field = array('id', 'order_sn', 'food_sn', 'total_weight', 'total_num', 'total_price', 'refund_price', 'apply_price', 'receiver', 'tel', 'by_plane_id', 'receive_site_id', 'receive_site_name', 'remark', 'product_snapshot', 'main_status', 'shipment_status', 'refund_status', 'refund_remark', 'canceled_time', 'order_time', 'paid_time', 'refunded_time', 'completed_time', 'received_time', 'shipped_time', 'delivered_time', 'refundapply_time', 'rejected_time', 'describe');
|
||||
if ($orderDetails = $orderDb->where($where)->field($field)->find()) {
|
||||
echo json_encode(array('status' => 1, 'msg' => '访问成功', 'orderShow' => $orderDetails));
|
||||
} else {
|
||||
echo json_encode(array('status' => 0, 'msg' => '访问失败'));
|
||||
}
|
||||
} else {
|
||||
echo json_encode(array('status' => 0, 'msg' => '参数有误'));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user