You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

36 lines
972 B

  1. <?php
  2. require_once "Api/ApiBase.php";
  3. require_once "Lib/Action/SetBaseRoomModel.php";
  4. /**
  5. * Created by PhpStorm.
  6. * User: gaohan
  7. * Date: 2016/11/24
  8. * Time: 16:09
  9. */
  10. class SetBaseRoom extends ApiBase
  11. {
  12. //修改基础房型的库存
  13. function AddBaseRoom(){
  14. $hotel_id=$_POST['hotel_id'];
  15. $user_id = $this->login_user_id;
  16. $room_info=$_POST['room_info'];
  17. $SetBaseRoom=new SetBaseRoomModel();
  18. $res=$SetBaseRoom->BaseRoomSet($user_id,$hotel_id,$room_info);
  19. return $res;
  20. }
  21. }
  22. @$op = $_REQUEST['op'];
  23. //$op = 'getOrderDetail';
  24. $obj = new SetBaseRoom();
  25. if ($op == 'AddBaseRoom') {
  26. $data = $obj->AddBaseRoom();
  27. } elseif ($op == 'cancelOrder') {
  28. $data = $obj->cancelOrder();
  29. } elseif ($op == 'cancelReason') {
  30. $data = $obj->cancelReason();
  31. } elseif ($op == 'handle_order') {
  32. $data = $obj->handle_order();
  33. } elseif ($op == 'getOrderDetail') {
  34. $data = $obj->getOrderDetail();
  35. }
  36. echo json_encode($data);