From bb08ee046ddb2d1a351ea3407e94241875de53bb Mon Sep 17 00:00:00 2001 From: amirghasempoor Date: Mon, 8 Sep 2025 13:38:35 +0330 Subject: [PATCH] remove ignore files --- .../Dashboard/RoadObservationController.php | 2 +- .../UpdateRoadObservedInfoByNikarayanJob.php | 4 ++-- app/Services/NikarayanService.php | 6 +++--- public/.gitignore | 8 -------- resources/.gitignore | 3 --- .../views/vendor/pulse/dashboard.blade.php | 19 +++++++++++++++++++ 6 files changed, 25 insertions(+), 17 deletions(-) create mode 100644 resources/views/vendor/pulse/dashboard.blade.php diff --git a/app/Http/Controllers/V2/Dashboard/RoadObservationController.php b/app/Http/Controllers/V2/Dashboard/RoadObservationController.php index b1ddc4e1..4b961b8b 100644 --- a/app/Http/Controllers/V2/Dashboard/RoadObservationController.php +++ b/app/Http/Controllers/V2/Dashboard/RoadObservationController.php @@ -572,7 +572,7 @@ class RoadObservationController extends Controller // $url = "https://riws.rmto.ir/WebServices/NRPTrafficStatus.asmx?wsdl"; try { // $result = $nikarayanService->updateRoadObservedInfoByNikarayan($request->only(['rms-status', 'rms-description']), $roadObserved, $files_path); - $result = UpdateRoadObservedInfoByNikarayanJob::dispatch($request->only(['rms-status', 'rms-description']), $roadObserved, $files_path)->onQueue('nikarayan'); + $result = UpdateRoadObservedInfoByNikarayanJob::dispatch($roadObserved, $files_path)->onQueue('nikarayan'); } 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"; diff --git a/app/Jobs/UpdateRoadObservedInfoByNikarayanJob.php b/app/Jobs/UpdateRoadObservedInfoByNikarayanJob.php index 6cc6a3c0..f79e7215 100644 --- a/app/Jobs/UpdateRoadObservedInfoByNikarayanJob.php +++ b/app/Jobs/UpdateRoadObservedInfoByNikarayanJob.php @@ -21,7 +21,7 @@ class UpdateRoadObservedInfoByNikarayanJob implements ShouldQueue /** * Create a new job instance. */ - public function __construct(public array $request, public RoadObserved $roadObserved, public $files) {} + public function __construct(public RoadObserved $roadObserved, public $files) {} /** * Execute the job. @@ -29,7 +29,7 @@ class UpdateRoadObservedInfoByNikarayanJob implements ShouldQueue */ public function handle(NikarayanService $nikarayanService) { - return $nikarayanService->updateRoadObservedInfoByNikarayan($this->request, $this->roadObserved, $this->files); + return $nikarayanService->updateRoadObservedInfoByNikarayan($this->roadObserved, $this->files); } /** diff --git a/app/Services/NikarayanService.php b/app/Services/NikarayanService.php index 2daf1fd0..7f2bfac3 100644 --- a/app/Services/NikarayanService.php +++ b/app/Services/NikarayanService.php @@ -14,7 +14,7 @@ class NikarayanService /** * @throws SoapFault */ - public function updateRoadObservedInfoByNikarayan($request, RoadObserved $roadObserved, $files) + public function updateRoadObservedInfoByNikarayan(RoadObserved $roadObserved, $files) { if (App::isProduction()) { @@ -24,8 +24,8 @@ class NikarayanService $array = array('strUserName' => 'vaytelrop', 'strPassword' => 'VaYtelROP*2024', 'strAutoID' => $roadObserved->fk_RegisteredEventMessage, - 'strStateID' => ($request['rms-status'] == 1) ? '2' : '3', - 'strDescription' => $request['rms-description'] ?? $roadObserved->rms_description, + 'strStateID' => ($roadObserved->rms_status == 1) ? '2' : '3', + 'strDescription' => $roadObserved->rms_description, 'strPreviousImageLink' => !empty($files) && isset($files[0]['path']) ? "https://rms.rmto.ir/" . $files[0]['path'] : "", 'strNextImageLink' => !empty($files) && isset($files[1]['path']) ? "https://rms.rmto.ir/" . $files[1]['path'] : "", 'strRMSDateAndTime' => $roadObserved->updated_at diff --git a/public/.gitignore b/public/.gitignore index 1c432f36..e69de29b 100644 --- a/public/.gitignore +++ b/public/.gitignore @@ -1,8 +0,0 @@ -* -!.gitignore -!.htaccess -!favicon.ico -!index.php -!robots.txt -!vendor -!web.config diff --git a/resources/.gitignore b/resources/.gitignore index a50fbbe5..e69de29b 100644 --- a/resources/.gitignore +++ b/resources/.gitignore @@ -1,3 +0,0 @@ -/views/* -!/views/v3/ -!/views/v3/* \ No newline at end of file diff --git a/resources/views/vendor/pulse/dashboard.blade.php b/resources/views/vendor/pulse/dashboard.blade.php new file mode 100644 index 00000000..6a95bb19 --- /dev/null +++ b/resources/views/vendor/pulse/dashboard.blade.php @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + +