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.
 
 
 
 

29 lines
859 B

  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: luocj
  5. * Date: 2017/3/24
  6. * Time: 9:46
  7. */
  8. require_once "Api/ApiBase.php";
  9. require_once "Lib/Action/HTChildRoom.class.php";
  10. class CancelChildRoom extends ApiBase{
  11. // offline
  12. function cancelRoom(){
  13. $user_id = $this->login_user_id;
  14. $room_type=isset($_REQUEST['room_type'])?$_REQUEST['room_type']:""; // 不为空
  15. $hotel_id=isset($_REQUEST['hotel_id'])?$_REQUEST['hotel_id']:""; // 不为空
  16. if(empty($room_type) || empty($hotel_id)){
  17. $data['code']="16";
  18. $data['info']="错误的请求参数";
  19. return $data;
  20. }
  21. $childRoom = new HTChildRoom;
  22. $data=$childRoom->doCancelChildRoom($user_id, $room_type, $hotel_id);
  23. return $data;
  24. }
  25. }
  26. $obj=new CancelChildRoom;
  27. $data=$obj->cancelRoom();
  28. echo json_encode($data);