diff --git a/app/api/controller/OrderController.php b/app/api/controller/OrderController.php index e445622..fac53b1 100644 --- a/app/api/controller/OrderController.php +++ b/app/api/controller/OrderController.php @@ -68,7 +68,12 @@ class OrderController extends BaseApiController $order = OrderLogic::add($this->userId, $info['data'], $post); return $order; } - + // 预约时间查询 + public function yuyueTime(){ + $post = $this->request->post(); + $result = OrderLogic::getYuyueTime($post); + return $this->success('获取成功', $result); + } //订单详情 public function detail() diff --git a/app/api/logic/OrderLogic.php b/app/api/logic/OrderLogic.php index 3d37edc..0024834 100644 --- a/app/api/logic/OrderLogic.php +++ b/app/api/logic/OrderLogic.php @@ -921,6 +921,9 @@ class OrderLogic extends LogicBase return $data; } + public static function getYuyueTime($data){ + return Db::name("order_yuyetime")->where("store_id",$data['store_id'])->select()->toArray(); + } /** * Notes: 订单详情