diff --git a/FlyCube/MpApi/Controller/AdminController.class.php b/FlyCube/MpApi/Controller/AdminController.class.php index 32ad689..8b99adf 100644 --- a/FlyCube/MpApi/Controller/AdminController.class.php +++ b/FlyCube/MpApi/Controller/AdminController.class.php @@ -748,22 +748,7 @@ class AdminController extends PublicController } $orderDb = D('order'); - $where = []; - if ($this->tokenShop_id != C('powerId')) { - $where['o.shop_id'] = $this->tokenShop_id; - } - - $orderList = $orderDb - ->alias('o') // 别名为 o - ->join('lr_receive_site rs ON o.receive_site_id = rs.id') // 关联 lr_receive_site 表 - ->field('o.*, rs.bind_route, rs.runing') // 选择字段,包括 bind_route 和 runing - ->where($where) - ->select(); - - if ($orderList) { - echo json_encode(array('status' => 1, 'msg' => '访问成功', 'orderList' => $orderList)); - } else { - echo json_encode(array('status' => 0, 'msg' => '暂无订单数据')); - } + $orderList = $orderDb->select(); + echo json_encode(array('status' => 1, 'msg' => '访问成功', 'orderList' => $orderList)); } }