sync order
This commit is contained in:
@@ -74,7 +74,7 @@ authorize_resource :class => false
|
||||
@orders, @order_items = Booking.get_sync_data(params[:sale_id])
|
||||
|
||||
# Here comes to call the sync api
|
||||
url = "http://192.168.1.187:3000/api/sync_records"
|
||||
url = "http://192.168.1.176:3000/en/api/sync_data"
|
||||
|
||||
begin
|
||||
@result = HTTParty.post(url.to_str,
|
||||
@@ -83,7 +83,7 @@ authorize_resource :class => false
|
||||
}.to_json,
|
||||
:headers => {
|
||||
'Content-Type' => 'application/json',
|
||||
'Authorization' => 'bearer 88fa8a47ba8b52a43cbc'
|
||||
'Authorization' => 'Bearer 698bd32190e86d076325'
|
||||
}, :timeout => 10,
|
||||
:verify_ssl => OpenSSL::SSL::VERIFY_NONE,
|
||||
:verify => false )
|
||||
|
||||
Reference in New Issue
Block a user