Merge pull request #26 from witelgroup/develop

Develop
This commit is contained in:
Amir Ghasempoor
2025-09-09 09:05:57 +03:30
committed by GitHub
677 changed files with 256391 additions and 32 deletions

View File

@@ -14,7 +14,7 @@ class NikarayanService
/**
* @throws SoapFault
*/
public function updateRoadObservedInfoByNikarayan(Request $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->input('rms-status') == 1) ? '2' : '3',
'strDescription' => $request->input('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