This commit is contained in:
KANE LAZENI 2026-02-16 01:30:50 +00:00
parent 0a090a6946
commit a4564c45f5
2 changed files with 6 additions and 1 deletions

View File

@ -66,6 +66,7 @@ class ControleurRechercheparcarte extends Controleur {
$donneesCarte = $_POST['donneesCarte']; // ex: "IS1|ebene|ESI6936000602|b18e7d5e-0ac2-11f1-a875-d05099ffadf8"|nfc => SVMx|ZWJlbmU=|RVNJNjkzNjAwMTcwMw==|b18e7d5e-0ac2-11f1-a875-d05099ffadf8|nfc $donneesCarte = $_POST['donneesCarte']; // ex: "IS1|ebene|ESI6936000602|b18e7d5e-0ac2-11f1-a875-d05099ffadf8"|nfc => SVMx|ZWJlbmU=|RVNJNjkzNjAwMTcwMw==|b18e7d5e-0ac2-11f1-a875-d05099ffadf8|nfc
$parts = explode('|', $donneesCarte); $parts = explode('|', $donneesCarte);
/*
var_dump( var_dump(
array( array(
// "POST" => $_POST, // "POST" => $_POST,
@ -74,7 +75,8 @@ class ControleurRechercheparcarte extends Controleur {
) )
); );
exit(); exit();
*/
$versionTagCarte = base64_decode($parts[0]); $versionTagCarte = base64_decode($parts[0]);
$codeEntite = base64_decode($parts[1]); $codeEntite = base64_decode($parts[1]);

View File

@ -125,6 +125,9 @@ inputField.addEventListener('input', function() {
}); });
inputField.addEventListener('change', function () { inputField.addEventListener('change', function () {
alert(this.value);
if (this.value.length > 3) { if (this.value.length > 3) {
const type = detectScanType(this.value); const type = detectScanType(this.value);
const message = type === 'qr' const message = type === 'qr'