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.
 
 
 
 

27 lines
719 B

  1. <?php
  2. //Author:fuhc
  3. //Date:20161008
  4. //上线
  5. require_once "Api/ApiBase.php";
  6. require_once "Lib/Action/HTChildRoom.class.php";
  7. class OnLineChildRoom extends ApiBase{
  8. // online
  9. function onLine(){
  10. $user_id = $this->login_user_id;
  11. $room_type=isset($_REQUEST['room_type'])?$_REQUEST['room_type']:""; // 不为空
  12. $hotel_id=isset($_REQUEST['hotel_id'])?$_REQUEST['hotel_id']:""; // 不为空
  13. if(empty($room_type) || empty($hotel_id)){
  14. $data['code']="16";
  15. $data['info']="错误的请求参数";
  16. return $data;
  17. }
  18. $childRoom = new HTChildRoom;
  19. $data=$childRoom->onLine($user_id,$room_type,$hotel_id);
  20. return $data;
  21. }
  22. }
  23. $obj=new OnLineChildRoom;
  24. $data=$obj->onLine();
  25. echo json_encode($data);