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.
|
- <?php
- //Author:gaohan
- //Date:20160921
- // 新增子房型
- require_once "Api/ApiBase.php";
- require_once "Lib/Action/HTChildRoom.class.php";
-
- class AddChildRoom extends ApiBase{
-
- // 新增子房型
- function addChildRoom(){
-
- // $hotel_id=isset($_POST['hotel_id'])?$_POST['hotel_id']:(isset($_GET['hotel_id'])?$_GET['hotel_id']:""); // 不为空
-
- // set para_user_id = 1;
- // set para_hotel_id = 3;
- // set para_parent_room_type = 274;
- // set para_start_date = '2016-09-11';
- // set para_end_date = '2016-09-20';
- //set para_week_day = '2345671';
- // set para_run_status = 1;
- // set para_base_price = 500;
- // set para_person_limit = 2;
- // set para_breakfast = 206;
- // set para_room_name = '大床房(2人入住)';
-
-
- $roomModel=array();
- $roomModel['user_id']="1";
- $roomModel['hotel_id']="3";
- $roomModel['parent_room_type']="274";
- $roomModel['start_date']="2016-09-21";
- $roomModel['end_date']="2016-10-01";
- $roomModel['week_day']="2345671";
- $roomModel['run_status']="1";
- $roomModel['base_price']="501";
- $roomModel['person_limit']="2";
- $roomModel['breakfast']="206";
- $roomModel['room_name']="双床房(2人入住)";
- $addChildRoom = new HTChildRoom;
- $data=$addChildRoom->addChildRoom($roomModel);
- return $data;
- }
- }
- $addChildRoom = new addChildRoom;
- $data=$addChildRoom->addChildRoom();
- echo json_encode($data);
-
-
-
|