-
This commit is contained in:
@@ -96,7 +96,7 @@ class Api::OrdersController < Api::ApiController
|
|||||||
end
|
end
|
||||||
}
|
}
|
||||||
#end extra time
|
#end extra time
|
||||||
|
Order.transaction do
|
||||||
# begin
|
# begin
|
||||||
@order = Order.new
|
@order = Order.new
|
||||||
@order.source = params[:order_source]
|
@order.source = params[:order_source]
|
||||||
@@ -134,12 +134,7 @@ class Api::OrdersController < Api::ApiController
|
|||||||
from = getCloudDomain #get sub domain in cloud mode
|
from = getCloudDomain #get sub domain in cloud mode
|
||||||
ActionCable.server.broadcast "order_channel",table: table,type:type,from:from
|
ActionCable.server.broadcast "order_channel",table: table,type:type,from:from
|
||||||
end
|
end
|
||||||
# # for parallel order
|
end
|
||||||
# remoteIP = ""
|
|
||||||
# begin
|
|
||||||
# @status, @booking = @order.generate
|
|
||||||
# remoteIP = request.remote_ip
|
|
||||||
# end while request.remote_ip != remoteIP
|
|
||||||
else
|
else
|
||||||
return return_json_status_with_code(406, "Checkout time is over!")
|
return return_json_status_with_code(406, "Checkout time is over!")
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -159,7 +159,7 @@ class Sale < ApplicationRecord
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
puts sale.sale_items.to_json
|
||||||
sale.orders << booking.orders
|
sale.orders << booking.orders
|
||||||
sale.customer_id = booking.orders[0].customer_id
|
sale.customer_id = booking.orders[0].customer_id
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user