This commit is contained in:
dev-chiefworks
2022-04-13 18:56:12 -04:00
parent 4175c51be6
commit 9b4124ac1f
+9
View File
@@ -114,6 +114,15 @@ class Savvy extends BaseController
// log_message('critical', json_encode($in) );
// log_message('critical', json_encode($_POST) );
$inx = $_POST;
// Decrypt the input
if (isset($inx['encrypted_payload'])) {
$payload = openssl_decrypt(hex2bin($inx['encrypted_payload']), $encryptionAlg, $encryptionKey, OPENSSL_RAW_DATA, $encryptionIV);
unset($inx['encrypted_payload']);
$inx = array_merge($in, json_decode($payload, true));
}
switch ($endpoint) {
case 'getdrycleanservicelist': $in["action"] = SAVVYEXT_USER_DRYCLIST;
break;