From 9d2b07db2d848fc121238ce622e9e537201d2b44 Mon Sep 17 00:00:00 2001 From: "sosuke.iwabuchi" Date: Thu, 11 Apr 2024 11:19:08 +0900 Subject: [PATCH] =?UTF-8?q?=E8=AA=8D=E8=A8=BC=E6=96=B9=E5=BC=8F=E8=A8=AD?= =?UTF-8?q?=E5=AE=9A=E7=99=BB=E9=8C=B2=20=E9=87=8D=E8=A4=87=E3=83=81?= =?UTF-8?q?=E3=82=A7=E3=83=83=E3=82=AF=E5=87=A6=E7=90=86=E3=82=92=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Web/Shop/Config/Certification/RegisterController.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/Web/Shop/Config/Certification/RegisterController.php b/app/Http/Controllers/Web/Shop/Config/Certification/RegisterController.php index 7dfc6f6..2871f53 100644 --- a/app/Http/Controllers/Web/Shop/Config/Certification/RegisterController.php +++ b/app/Http/Controllers/Web/Shop/Config/Certification/RegisterController.php @@ -34,11 +34,14 @@ class RegisterController extends WebController $param = $this->param; // 重複チェック - if (ShopNoRelation::whereShopId($param->shopId) - ->whereParkingManagementCode($param->parkingManagementCode) + if (ShopNoRelation::byKey( + $param->shopId, + $param->parkingManagementCode, + QRServiceUsage::認証方式 + ) ->exists() ) { - ParamException::throw(ColumnName::PARKING_MANAGEMENT_CODE, trans("validation.exists")); + ParamException::throw(ColumnName::PARKING_MANAGEMENT_CODE, trans("validation.unique")); } $relation = new ShopNoRelation();