diff --git a/FlyCube/MpApi/Controller/AdminController.class.php b/FlyCube/MpApi/Controller/AdminController.class.php index 51e2c4e..055fb12 100644 --- a/FlyCube/MpApi/Controller/AdminController.class.php +++ b/FlyCube/MpApi/Controller/AdminController.class.php @@ -809,4 +809,24 @@ class AdminController extends PublicController $orderList = $orderDb->where($where)->field($field)->select(); echo json_encode(array('status' => 1, 'msg' => '访问成功', 'orderList' => $orderList)); } + + /** + * @description:获取订单详情 + */ + public function getOrderShow() + { + if ($this->tokenShop_id != C('powerId')) { + $where['shop_id'] = $this->tokenShop_id; //非总管理员 只返回自己的账户信息 + } + + 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)); + } else { + echo json_encode(array('status' => 0, 'msg' => '参数有误')); + } + } }