Commit 76b27fe8 authored by Khumoyunmirzo Sodiqov's avatar Khumoyunmirzo Sodiqov

video

parent 076c0a8c
...@@ -180,16 +180,19 @@ class DeliverySytemsController extends Controller ...@@ -180,16 +180,19 @@ class DeliverySytemsController extends Controller
$processShipmentRequest->setVersion($version); $processShipmentRequest->setVersion($version);
$processShipmentRequest->setRequestedShipment($requestedShipment); $processShipmentRequest->setRequestedShipment($requestedShipment);
$shipService = new Request(); $shipService = new Request();
// dd($processShipmentRequest);
// ini_set("soap.wsdl_cache_enabled", "0");
$shipService->getSoapClient()->__setLocation(Request::PRODUCTION_URL);
// $shipService->getSoapClient()->SoapClient('https://ws.fedex.com:443/web-services/ship');
// $shipService->getSoapClient()->SoapClient('https://ws.fedex.com:443/web-services'); // $shipService->getSoapClient()->SoapClient('https://ws.fedex.com:443/web-services');
$shipService->getSoapClient()->SoapClient('https://ws.fedex.com:443/web-services');
$result = $shipService->getProcessShipmentReply($processShipmentRequest); $result = $shipService->getProcessShipmentReply($processShipmentRequest);
if ($result->HighestSeverity == 'ERROR') { if ($result->HighestSeverity == 'ERROR') {
// dd($result->Notifications[0]->Message); dd($result);
return response()->json([ // return response()->json([
'error' => $result->Notifications[0]->Message, // 'error' => $result->Notifications[0]->Message,
'code' => $result->Notifications[0]->Code // 'code' => $result->Notifications[0]->Code
], 200); // ], 200);
} }
if ($result->HighestSeverity == 'WARNING') { if ($result->HighestSeverity == 'WARNING') {
// dd($result->Notifications[0]->Message); // dd($result->Notifications[0]->Message);
......
...@@ -54,7 +54,7 @@ class DeclarationController extends Controller ...@@ -54,7 +54,7 @@ class DeclarationController extends Controller
'to_address_id', 'to_address_id',
'edited', 'edited',
DB::raw('(SELECT concat(firstname,\' \', secondname) FROM address_info where address_info.id=orders.to_address_id) as r_name'), DB::raw('(SELECT concat(firstname,\' \', secondname) FROM address_info where address_info.id=orders.to_address_id) as r_name'),
DB::raw('(SELECT name_uz FROM payment_statuses where payment_statuses.id=(select payment_statuses_id from payment where payment.order_id=orders.id)) as payment_status'), DB::raw('(SELECT name FROM payment_statuses where payment_statuses.id=(select payment_statuses_id from payment where payment.order_id=orders.id)) as payment_status'),
'amount', 'amount',
'weight', 'weight',
'summa', 'summa',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment