From de55de302ec8f9a8de5e42468cdf0cb7d3ef5613 Mon Sep 17 00:00:00 2001 From: liwenrui Date: Tue, 25 Jul 2023 14:54:03 +0800 Subject: [PATCH] * fix schema getting. --- module/ai/model.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/module/ai/model.php b/module/ai/model.php index 9225205f73..837cec8e34 100644 --- a/module/ai/model.php +++ b/module/ai/model.php @@ -662,7 +662,10 @@ class aiModel extends model $formPath = explode('.', $form); if(count($formPath) !== 2) return array(); - $schema = $this->lang->ai->formSchema[$formPath[0]][$formPath[1]]; + $targetForm = $this->config->ai->targetForm[$formPath[0]][$formPath[1]]; + if(empty($targetForm)) return array(); + + $schema = $this->lang->ai->formSchema[$targetForm->m][$targetForm->f]; return empty($schema) ? array() : $schema; }