check time

This commit is contained in:
phyusin
2018-11-28 18:44:08 +06:30
parent b78d391e2b
commit ed6310d462

View File

@@ -50,7 +50,7 @@ class Api::OrdersController < Api::ApiController
Rails.logger.debug "Order Source - " + params[:order_source].to_s
Rails.logger.debug "Table ID - " + params[:table_id].to_s
# if checkin_checkout_time(params[:booking_id])
if checkin_checkout_time(params[:booking_id])
#for extratime
is_extra_time = false
extra_time = ''
@@ -133,9 +133,9 @@ class Api::OrdersController < Api::ApiController
# @status, @booking = @order.generate
# remoteIP = request.remote_ip
# end while request.remote_ip != remoteIP
# else
# return return_json_status_with_code(406, "Checkout time is over!")
# end
else
return return_json_status_with_code(406, "Checkout time is over!")
end
end
# render json for http status code