Explorar el Código

QRサービス券読み取り修正

develop
sosuke.iwabuchi hace 1 año
padre
commit
0a66f9c921
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. +3
    -1
      app/Http/Controllers/Web/QRService/Certification/CheckDataFormatController.php

+ 3
- 1
app/Http/Controllers/Web/QRService/Certification/CheckDataFormatController.php Ver fichero

@@ -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);


Cargando…
Cancelar
Guardar