From 0a66f9c9215c84ccdee873dbac6d9cfc05721dda Mon Sep 17 00:00:00 2001 From: "sosuke.iwabuchi" Date: Wed, 3 Apr 2024 11:46:28 +0900 Subject: [PATCH] =?UTF-8?q?QR=E3=82=B5=E3=83=BC=E3=83=93=E3=82=B9=E5=88=B8?= =?UTF-8?q?=E8=AA=AD=E3=81=BF=E5=8F=96=E3=82=8A=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Web/QRService/Certification/CheckDataFormatController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/Web/QRService/Certification/CheckDataFormatController.php b/app/Http/Controllers/Web/QRService/Certification/CheckDataFormatController.php index 138039e..7fba0b6 100644 --- a/app/Http/Controllers/Web/QRService/Certification/CheckDataFormatController.php +++ b/app/Http/Controllers/Web/QRService/Certification/CheckDataFormatController.php @@ -123,7 +123,9 @@ class DataConverter $target = substr($data, 5); $dec = QRCryptoLogic::decrypt($target); - if (strlen($dec) !== 15) { + if (strlen($dec) !== 25) { + logger($target); + logger($dec); throw new GeneralErrorMessageException("URL不正"); } $ret->発行端末 = substr($dec, 0, 2);