remove nikarayan service provider
This commit is contained in:
@@ -9,17 +9,12 @@ use SoapClient;
|
||||
|
||||
class NikarayanService
|
||||
{
|
||||
protected SoapClient $soapClient;
|
||||
|
||||
public function __construct(SoapClient $soapClient)
|
||||
{
|
||||
$this->soapClient = $soapClient;
|
||||
}
|
||||
|
||||
public function updateRoadObservedInfoByNikarayan(Request $request, RoadObserved $roadObserved, $files)
|
||||
{
|
||||
if (App::isProduction())
|
||||
{
|
||||
$url = "https://riws.rmto.ir/WebServices/NRPTrafficStatus.asmx?wsdl";
|
||||
|
||||
$array = array('strUserName' => 'vaytelrop',
|
||||
'strPassword' => 'VaYtelROP*2024',
|
||||
'strAutoID' => $roadObserved->fk_RegisteredEventMessage,
|
||||
@@ -29,7 +24,10 @@ class NikarayanService
|
||||
'strNextImageLink' => "https://rms.rmto.ir/".$files,
|
||||
'strRMSDateAndTime' => $roadObserved->updated_at
|
||||
);
|
||||
return $this->soapClient->UpdateInfo_RoadObservedProblems($array);
|
||||
|
||||
$soapClient = new SoapClient($url);
|
||||
|
||||
return $soapClient->UpdateInfo_RoadObservedProblems($array);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
@@ -67,6 +67,6 @@ class PaymentService
|
||||
abort(500);
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
return json_encode(['isPayed' => 1]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user