create job for nikarayan

This commit is contained in:
2025-09-08 09:54:36 +03:30
parent 755ab2f67b
commit 76b0fbf565
2 changed files with 37 additions and 1 deletions

View File

@@ -3,6 +3,7 @@
namespace App\Http\Controllers\V2\Dashboard;
use App\Http\Controllers\Controller;
use App\Jobs\UpdateRoadObservedInfoByNikarayanJob;
use App\Services\NikarayanService;
use Illuminate\Http\Request;
use Hekmatinasser\Verta\Verta;
@@ -570,7 +571,8 @@ class RoadObservationController extends Controller
// }
// $url = "https://riws.rmto.ir/WebServices/NRPTrafficStatus.asmx?wsdl";
try {
$result = $nikarayanService->updateRoadObservedInfoByNikarayan($request, $roadObserved, $files_path);
// $result = $nikarayanService->updateRoadObservedInfoByNikarayan($request, $roadObserved, $files_path);
$result = UpdateRoadObservedInfoByNikarayanJob::dispatch($request, $roadObserved, $files_path);
} catch (SoapFault $e) {
$msg = "error in send to nikarayan at" . date("Y-m-d H:i:s") . "\n" . 'rms: error in get road observation webservice babe!!!!' . "\n";