Explorar el Código

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

develop
sosuke.iwabuchi hace 1 año
padre
commit
9d2b07db2d
Se han modificado 1 ficheros con 6 adiciones y 3 borrados
  1. +6
    -3
      app/Http/Controllers/Web/Shop/Config/Certification/RegisterController.php

+ 6
- 3
app/Http/Controllers/Web/Shop/Config/Certification/RegisterController.php Ver fichero

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


Cargando…
Cancelar
Guardar