Browse Source

認証方式設定登録 重複チェック処理を修正

develop
sosuke.iwabuchi 1 year ago
parent
commit
9d2b07db2d
1 changed files with 6 additions and 3 deletions
  1. +6
    -3
      app/Http/Controllers/Web/Shop/Config/Certification/RegisterController.php

+ 6
- 3
app/Http/Controllers/Web/Shop/Config/Certification/RegisterController.php View File

@@ -34,11 +34,14 @@ class RegisterController extends WebController
$param = $this->param; $param = $this->param;


// 重複チェック // 重複チェック
if (ShopNoRelation::whereShopId($param->shopId)
->whereParkingManagementCode($param->parkingManagementCode)
if (ShopNoRelation::byKey(
$param->shopId,
$param->parkingManagementCode,
QRServiceUsage::認証方式
)
->exists() ->exists()
) { ) {
ParamException::throw(ColumnName::PARKING_MANAGEMENT_CODE, trans("validation.exists"));
ParamException::throw(ColumnName::PARKING_MANAGEMENT_CODE, trans("validation.unique"));
} }


$relation = new ShopNoRelation(); $relation = new ShopNoRelation();


Loading…
Cancel
Save