diff --git a/app/api/controller/order/OrderController.php b/app/api/controller/order/OrderController.php index c5ef5d356..7ef4bdac0 100644 --- a/app/api/controller/order/OrderController.php +++ b/app/api/controller/order/OrderController.php @@ -339,10 +339,17 @@ class OrderController extends BaseApiController public function detail() { $order_id = (int)$this->request->get('order_id'); - $where = [ - 'id' => $order_id, - 'uid' => $this->userId, - ]; + $is_mer=$this->request->get('is_mer'); + if($is_mer==1){ + $where = [ + 'id' => $order_id, + ]; + }else{ + $where = [ + 'id' => $order_id, + 'uid' => $this->userId, + ]; + } $url = 'https://' . $this->request->host(true); $order = OrderLogic::detail($where, $url); if ($order) {