dbms_init...1
This commit is contained in:
parent
92936526ab
commit
1e45d1169b
@ -46,7 +46,7 @@ class DomainController extends EquipmentController
|
||||
protected function index_process(): array
|
||||
{
|
||||
$fields = [
|
||||
'fields' => ['clientinfo_uid', 'domain', 'price', 'status'],
|
||||
'fields' => ['domain', 'price', 'expired_at', 'status'],
|
||||
];
|
||||
$this->init('index', $fields);
|
||||
return parent::index_process();
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -4,8 +4,8 @@
|
||||
"settings": {
|
||||
"width": 3000,
|
||||
"height": 3000,
|
||||
"scrollTop": -973.0987,
|
||||
"scrollLeft": -848,
|
||||
"scrollTop": -856.0987,
|
||||
"scrollLeft": -1693,
|
||||
"zoomLevel": 0.79,
|
||||
"show": 511,
|
||||
"database": 4,
|
||||
@ -58,7 +58,6 @@
|
||||
"4BDt10BeeryoN0ZdEHIui",
|
||||
"KtdVJCYZ3DMVnPnFGKi3P",
|
||||
"AH1dyESfueUlhcoiU6KsQ",
|
||||
"E2-IcGXHIgpjgyAepIg1o",
|
||||
"wX0DbZb_RcK85hWv9dxcX",
|
||||
"w-QYHsd8nVKvDaBO9LDbp",
|
||||
"19PCL5s4M6NxuV-ePUz50",
|
||||
@ -683,7 +682,6 @@
|
||||
"comment": "도메인 정보",
|
||||
"columnIds": [
|
||||
"XnNj7H0bnTxo_NuZm7BOs",
|
||||
"rK1V9ccYa0gxVE2W98dGH",
|
||||
"w404_rDrrYyt26iqY8Eur",
|
||||
"yqa1YWYVe9ZH-gXAdHtFU",
|
||||
"EcVzL-sPHB3OIUYfPrAs6",
|
||||
@ -717,7 +715,7 @@
|
||||
"color": ""
|
||||
},
|
||||
"meta": {
|
||||
"updateAt": 1748826887186,
|
||||
"updateAt": 1748938285017,
|
||||
"createAt": 1748218895681
|
||||
}
|
||||
},
|
||||
@ -5145,7 +5143,7 @@
|
||||
"default": "",
|
||||
"options": 8,
|
||||
"ui": {
|
||||
"keys": 2,
|
||||
"keys": 0,
|
||||
"widthName": 73,
|
||||
"widthComment": 60,
|
||||
"widthDataType": 60,
|
||||
@ -6489,7 +6487,7 @@
|
||||
"_AcWUYKzNJd-V0fRHq8Cx"
|
||||
],
|
||||
"x": 2146.2084,
|
||||
"y": 744.0748,
|
||||
"y": 757.4081333333332,
|
||||
"direction": 2
|
||||
},
|
||||
"end": {
|
||||
@ -6545,7 +6543,7 @@
|
||||
"_AcWUYKzNJd-V0fRHq8Cx"
|
||||
],
|
||||
"x": 2146.2084,
|
||||
"y": 904.0748,
|
||||
"y": 970.7414666666665,
|
||||
"direction": 2
|
||||
},
|
||||
"end": {
|
||||
@ -6573,7 +6571,7 @@
|
||||
"_AcWUYKzNJd-V0fRHq8Cx"
|
||||
],
|
||||
"x": 2146.2084,
|
||||
"y": 824.0748,
|
||||
"y": 864.0747999999999,
|
||||
"direction": 2
|
||||
},
|
||||
"end": {
|
||||
|
||||
@ -239,6 +239,7 @@ class CommonHelper
|
||||
$form = form_dropdown($field, $formOptions, $value, $extras);
|
||||
}
|
||||
break;
|
||||
case 'expired_at':
|
||||
case 'billing_at':
|
||||
case 'start_at':
|
||||
case 'end_at':
|
||||
|
||||
@ -4,6 +4,7 @@ return [
|
||||
'label' => [
|
||||
'clientinfo_uid' => "고객",
|
||||
'domain' => "도메인",
|
||||
'expired_at' => "종료일",
|
||||
'price' => "금액",
|
||||
'description' => "설명",
|
||||
'status' => "상태",
|
||||
|
||||
@ -13,7 +13,6 @@ class DomainModel extends EquipmentModel
|
||||
protected $primaryKey = self::PK;
|
||||
protected $returnType = DomainEntity::class;
|
||||
protected $allowedFields = [
|
||||
"clientinfo_uid",
|
||||
"domain",
|
||||
"price",
|
||||
"expired_at",
|
||||
@ -30,7 +29,6 @@ class DomainModel extends EquipmentModel
|
||||
throw new \Exception(__FUNCTION__ . "=> field가 array 입니다.\n" . var_export($field, true));
|
||||
}
|
||||
switch ($field) {
|
||||
case "clientinfo_uid":
|
||||
case "price":
|
||||
$rule = "required|numeric";
|
||||
break;
|
||||
|
||||
@ -25,15 +25,15 @@ class DomainService extends EquipmentService
|
||||
public function getFields(): array
|
||||
{
|
||||
return [
|
||||
"clientinfo_uid",
|
||||
"domain",
|
||||
"price",
|
||||
"expired_at",
|
||||
"status",
|
||||
];
|
||||
}
|
||||
public function getFilterFields(): array
|
||||
{
|
||||
return ["clientinfo_uid", 'status',];
|
||||
return ['status',];
|
||||
}
|
||||
public function getBatchJobFields(): array
|
||||
{
|
||||
|
||||
@ -7,10 +7,10 @@ class UrlRules
|
||||
/**
|
||||
* 유효한 도메인인지 확인
|
||||
*/
|
||||
public function valid_domain(string $str, string $fields, array $data): bool
|
||||
public function valid_domain(string $value): bool
|
||||
{
|
||||
// 기본적인 정규식 검사 (예: example.com, sub.example.co.kr)
|
||||
if (!preg_match('/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i', $str)) {
|
||||
if (!preg_match('/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i', $value)) {
|
||||
return false;
|
||||
}
|
||||
// 실제 DNS 확인도 하고 싶다면 (옵션)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user