request->post(); $data['user_id'] = $this->userId; $result = OrderLogic::addOrder($data); if($result){ $d['id'] = $result; return $this->success('操作成功', $d, 1, 1); } return $this->fail(OrderLogic::getError()); } /** * @notes 订单列表 * @return \think\response\Json * @author 胥聪 * @date 2025/11/3 14:57 * @data id */ public function orderList(){ $data = $this->request->post(); $userId = $this->userId; $result = OrderLogic::orderList($data,$userId); return $this->success('查询成功', $result, 1, 1); } /** * @notes 订单详情 * @return \think\response\Json * @author 胥聪 * @date 2025/10/16 14:55 * @data */ public function orderDetails(){ $data = $this->request->post(); $result = OrderLogic::orderDetails($data); if($result){ $d['details'] = $result; return $this->success('查询成功', $d, 1, 1); } return $this->fail(OrderLogic::getError()); } /** * @notes 取消订单 * @return \think\response\Json * @author 胥聪 * @date 2025/11/3 14:59 * @data */ public function cancelOrder(){ $data = $this->request->post(); $result = OrderLogic::cancelOrder($data); return $this->success('操作成功', [], 1, 1); } /** * @notes 删除订单 * @return \think\response\Json * @author 胥聪 * @date 2025/11/4 14:38 * @data */ public function delOrder(){ $data = $this->request->post(); $result = OrderLogic::delOrder($data); return $this->success('操作成功', [], 1, 1); } /** * @notes 用户确认订单 * @return \think\response\Json * @author 胥聪 * @date 2025/11/4 15:36 * @data */ public function userConfirmOrder(){ $data = $this->request->post(); $result = OrderLogic::userConfirmOrder($data); return $this->success('操作成功', [], 1, 1); } /** * @notes 提交包间订单信息 * @return \think\response\Json * @author 胥聪 * @date 2025/11/20 15:05 * @data */ public function submitStoreOrder(){ $data = $this->request->post(); $userId = $this->userId; $result = OrderLogic::addStoreOrder($data,$userId); if($result){ $d['id'] = $result; return $this->success('操作成功', $d, 1, 1); } return $this->fail(OrderLogic::getError()); } /** * @notes 包间订单列表 * @return \think\response\Json * @author 胥聪 * @date 2025/11/20 15:03 * @data id */ public function orderStoreList(){ $data = $this->request->post(); $userId = $this->userId; $result = OrderLogic::orderStoreList($data,$userId); return $this->success('查询成功', $result, 1, 1); } /** * @notes 包间订单详情 * @return \think\response\Json * @author 胥聪 * @date 2025/11/20 15:25 * @data */ public function orderStoreDetails(){ $data = $this->request->post(); $result = OrderLogic::orderStoreDetails($data); if($result){ $d['details'] = $result; return $this->success('查询成功', $d, 1, 1); } return $this->fail(OrderLogic::getError()); } /** * @notes 获取包间预定价格 * @return \think\response\Json * @author Yzt * @date 2026/01/19 15:25 * @data */ public function getOrderAmount(){ $data = $this->request->post(); $result = OrderLogic::getOrderAmount($data); if($result){ $d['details'] = $result; return $this->success('查询成功', $d, 1, 1); } return $this->fail(OrderLogic::getError()); } /** * @notes 获取续订包间价格 * @return \think\response\Json * @author Yzt * @date 2026/01/19 15:25 * @data */ public function getOrderRenewAmount(){ $data = $this->request->post(); $result = OrderLogic::getOrderRenewAmount($data); if($result){ $d['details'] = $result; return $this->success('查询成功', $d, 1, 1); } return $this->fail(OrderLogic::getError()); } /** * @notes 取消包间订单 * @return \think\response\Json * @author 胥聪 * @date 2025/11/20 15:38 * @data */ public function cancelOrderStore(){ $data = $this->request->post(); $result = OrderLogic::cancelOrderStore($data); return $this->success('操作成功', [], 1, 1); } /** * @notes 删除包间订单 * @return \think\response\Json * @author 胥聪 * @date 2025/11/20 15:38 * @data */ public function delOrderStore(){ $data = $this->request->post(); // $result = OrderLogic::delOrderStore($data); return $this->success('暂不支持', [], 1, 1); } /** * @notes 用户确认包间订单 * @return \think\response\Json * @author 胥聪 * @date 2025/11/20 15:38 * @data */ public function userConfirmOrderStore(){ $data = $this->request->post(); $result = OrderLogic::userConfirmOrderStore($data); return $this->success('操作成功', [], 1, 1); } /** * @notes 用户续订 * @return \think\response\Json * @author 胥聪 * @date 2025/11/20 15:38 * @data */ public function renewDtime(){ $data = $this->request->post(); $result = OrderLogic::renewDtime($data,$this->userId); if($result){ return $this->success('操作成功', $result, 1, 1); } return $this->fail(OrderLogic::getError()); } /** * @notes 提交团购订单信息 * @return \think\response\Json * @author 胥聪 * @date 2025/11/27 11:19 * @data */ public function submitGroupOrder(){ $data = $this->request->post(); $data['user_id'] = $this->userId; $result = OrderLogic::addGroupOrder($data); if($result){ $d['id'] = $result['id']; $d['order_amount'] = $result['order_amount']; return $this->success('操作成功', $d, 1, 1); } return $this->fail(OrderLogic::getError()); } /** * @notes 团购订单列表 * @return \think\response\Json * @author 胥聪 * @date 2025/11/27 11:20 * @data id */ public function orderGroupList(){ $data = $this->request->post(); $userId = $this->userId; $result = OrderLogic::orderGroupList($data,$userId); return $this->success('查询成功', $result, 1, 1); } /** * @notes 订单详情 * @return \think\response\Json * @author 胥聪 * @date 2025/10/16 14:55 * @data */ public function orderGroupDetails(){ $data = $this->request->post(); $result = OrderLogic::orderGroupDetails($data); if($result){ $d['details'] = $result; return $this->success('查询成功', $d, 1, 1); } return $this->fail(OrderLogic::getError()); } /** * @notes 茶室选择团购券列表 * @return \think\response\Json * @author 胥聪 * @date 2025/11/28 15:26 * @data */ public function teaStoreGroupUseLists(){ $data = $this->request->post(); $userId = $this->userId; $result = OrderLogic::teaStoreGroupUseLists($data,$userId); if($result){ return $this->success('查询成功', $result, 1, 1); } return $this->fail(OrderLogic::getError()); } /** * @notes 结算金额 * @return \think\response\Json * @author 胥聪 * @date 2025/11/28 15:26 * @data */ public function countPrice(){ $data = $this->request->post(); $userId = $this->userId; $result = OrderLogic::countPrice($data,$userId); if($result){ return $this->success('查询成功', $result, 1, 1); } return $this->fail(OrderLogic::getError()); } /** * @notes 提交退款订单 * @return \think\response\Json * @author 胥聪 * @date 2025/12/21 19:23 * @data */ public function submitRefund(){ $data = $this->request->post(); $result = OrderLogic::submitRefund($data,$this->userId); if($result){ $d['id'] = $result; return $this->success('操作成功', $d, 1, 1); } return $this->fail(OrderLogic::getError()); } /** * @notes 创建门店充值订单 * @return \think\response\Json * @author 胥聪 * @date 2025/12/21 19:23 * @data */ public function addRechargeOrder(){ $data = $this->request->post(); $result = OrderLogic::addRechargeOrder($data,$this->userId); if($result){ return $this->success('', $result, 1, 1); } return $this->fail(OrderLogic::getError()); } /** * @notes 转让订单 * @return \think\response\Json * @author 胥聪 * @date 2025/12/22 1:36 * @data */ public function transferOrder(){ $data = $this->request->post(); $result = OrderLogic::transferOrder($data,$this->userId); if($result){ return $this->success('操作成功', [], 1, 1); } return $this->fail(OrderLogic::getError()); } }