|
123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- require_once "Api/ApiBase.php";
- require_once "Lib/Action/SetBaseRoomModel.php";
- /**
- * Created by PhpStorm.
- * User: gaohan
- * Date: 2016/11/24
- * Time: 16:09
- */
- class SetBaseRoom extends ApiBase
- {
- //修改基础房型的库存
- function AddBaseRoom(){
- $hotel_id=$_POST['hotel_id'];
- $user_id = $this->login_user_id;
- $room_info=$_POST['room_info'];
- $SetBaseRoom=new SetBaseRoomModel();
- $res=$SetBaseRoom->BaseRoomSet($user_id,$hotel_id,$room_info);
- return $res;
- }
- }
- @$op = $_REQUEST['op'];
- //$op = 'getOrderDetail';
- $obj = new SetBaseRoom();
- if ($op == 'AddBaseRoom') {
- $data = $obj->AddBaseRoom();
- } elseif ($op == 'cancelOrder') {
- $data = $obj->cancelOrder();
- } elseif ($op == 'cancelReason') {
- $data = $obj->cancelReason();
- } elseif ($op == 'handle_order') {
- $data = $obj->handle_order();
- } elseif ($op == 'getOrderDetail') {
- $data = $obj->getOrderDetail();
- }
- echo json_encode($data);
|