cfmgrv4 init...1

This commit is contained in:
최준흠 2024-09-27 19:53:40 +09:00
parent bc83fa1fc0
commit 5847c05f5d
2 changed files with 6 additions and 4 deletions

View File

@ -40,11 +40,13 @@ class RecordController extends CloudflareController
{ {
switch ($field) { switch ($field) {
case $this->getModel()::PARENT: case $this->getModel()::PARENT:
$this->getZoneModel()->where('status', DEFAULTS['STATUS']); $this->getZoneModel()->where('status', 'active');
$options[$field] = [ $options[$field] = [
DEFAULTS['EMPTY'] => lang($this->class_path . '.label.' . $field) . ' 선택', DEFAULTS['EMPTY'] => lang($this->class_path . '.label.' . $field) . ' 선택',
...$this->getZoneModel()->getFormFieldOption($field, $options), ...$this->getZoneModel()->getFormFieldOption($field, $options),
]; ];
echo $this->getZoneModel()->getLastQuery();
dd($options);
break; break;
default: default:
$options = parent::getFormFieldOption($field, $options); $options = parent::getFormFieldOption($field, $options);

View File

@ -15,8 +15,7 @@ return [
'updated_at' => "수정일", 'updated_at' => "수정일",
'created_at' => "작성일", 'created_at' => "작성일",
], ],
"ACCOUNT_UID" => [ "ACCOUNT_UID" => [],
],
"DEVELOPMENT_MODE" => [ "DEVELOPMENT_MODE" => [
"on" => "사용", "on" => "사용",
"off" => "사용않함", "off" => "사용않함",
@ -34,5 +33,6 @@ return [
"STATUS" => [ "STATUS" => [
"active" => "active", "active" => "active",
"pending" => "pending", "pending" => "pending",
"moved" => "moved"
], ],
]; ];