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);