瀏覽代碼

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

develop
sosuke.iwabuchi 1 年之前
父節點
當前提交
9d2b07db2d
共有 1 個檔案被更改,包括 6 行新增3 行删除
  1. +6
    -3
      app/Http/Controllers/Web/Shop/Config/Certification/RegisterController.php

+ 6
- 3
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();


Loading…
取消
儲存