sync order

This commit is contained in:
Zoey
2019-06-12 18:21:39 +06:30
parent e1bb948a3d
commit 2a638b2a89
4 changed files with 34 additions and 33 deletions

View File

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