Kaynağa Gözat

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

develop
sosuke.iwabuchi 1 yıl önce
ebeveyn
işleme
9d2b07db2d
1 değiştirilmiş dosya ile 6 ekleme ve 3 silme
  1. +6
    -3
      app/Http/Controllers/Web/Shop/Config/Certification/RegisterController.php

+ 6
- 3
app/Http/Controllers/Web/Shop/Config/Certification/RegisterController.php Dosyayı Görüntüle

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


Yükleniyor…
İptal
Kaydet