crate new project
This commit is contained in:
@@ -48,27 +48,11 @@ class SendAccessRoadStatusService
|
||||
->json();
|
||||
}
|
||||
|
||||
public function makeInputParameters($data): void
|
||||
public function makeInputParameters($input): void
|
||||
{
|
||||
$arrayData = json_decode($data, true);
|
||||
|
||||
$inputParameters = [
|
||||
'data' => [
|
||||
'actionId' => $arrayData['actionId'],
|
||||
'ruleId' => $arrayData['ruleId'],
|
||||
'activityId' => $arrayData['activityId'],
|
||||
'requestId' => $arrayData['requestId'],
|
||||
'taskId' => $arrayData['taskId'],
|
||||
'code' => $arrayData['code'],
|
||||
'resultStatus' => $arrayData['resultStatus'],
|
||||
'Description' => $arrayData['Description'],
|
||||
],
|
||||
'token' => $arrayData['token'],
|
||||
];
|
||||
|
||||
$key = config('harim_web_services.Harim_Info.key');
|
||||
$iv = config('harim_web_services.Harim_Info.iv');
|
||||
|
||||
$this->inputParameters = openssl_encrypt(json_encode($inputParameters), 'aes-256-cbc', $key, false, $iv);
|
||||
$this->inputParameters = openssl_encrypt(json_encode($input), 'aes-256-cbc', $key, false, $iv);
|
||||
}
|
||||
}
|
||||
@@ -48,27 +48,11 @@ class SendPaymentInfoService
|
||||
->json();
|
||||
}
|
||||
|
||||
public function makeInputParameters($data): void
|
||||
public function makeInputParameters($input): void
|
||||
{
|
||||
$arrayData = json_decode($data, true);
|
||||
|
||||
$inputParameters = [
|
||||
'data' => [
|
||||
'actionId' => $arrayData['actionId'],
|
||||
'ruleId' => $arrayData['ruleId'],
|
||||
'activityId' => $arrayData['activityId'],
|
||||
'requestId' => $arrayData['requestId'],
|
||||
'taskId' => $arrayData['taskId'],
|
||||
'code' => $arrayData['code'],
|
||||
'warrantStatus' => $arrayData['warrantStatus'],
|
||||
'amountPaid' => $arrayData['amountPaid'],
|
||||
],
|
||||
'token' => $arrayData['token'],
|
||||
];
|
||||
|
||||
$key = config('harim_web_services.Harim_Info.key');
|
||||
$iv = config('harim_web_services.Harim_Info.iv');
|
||||
|
||||
$this->inputParameters = openssl_encrypt(json_encode($inputParameters), 'aes-256-cbc', $key, false, $iv);
|
||||
$this->inputParameters = openssl_encrypt(json_encode($input), 'aes-256-cbc', $key, false, $iv);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user