* give up on brs.

This commit is contained in:
liwenrui
2023-07-27 14:44:59 +08:00
parent 9020d66ff9
commit 46ebf21edb
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -61,7 +61,7 @@ class ai extends control
{
$errors[] = sprintf($this->lang->ai->validate->noEmpty, $this->lang->ai->models->proxyAddr);
}
if(!empty($errors)) return $this->send(array('result' => 'fail', 'message' => implode('<br>', $errors)));
if(!empty($errors)) return $this->send(array('result' => 'fail', 'message' => implode(' ', $errors)));
$this->loadModel('setting')->setItems('system.ai', $modelConfig);
@@ -102,7 +102,7 @@ class ai extends control
{
$errors[] = sprintf($this->lang->ai->validate->noEmpty, $this->lang->ai->models->proxyAddr);
}
if(!empty($errors)) return $this->send(array('result' => 'fail', 'message' => implode('<br>', $errors)));
if(!empty($errors)) return $this->send(array('result' => 'fail', 'message' => implode(' ', $errors)));
$this->ai->setConfig($modelConfig);
+1 -1
View File
@@ -98,7 +98,7 @@ $(function() {
}
else
{
$.zui.messager.danger(data.message.replace('<br>', ' '));
$.zui.messager.danger(data.message);
}
},
complete: function() {$.enableForm('#mainForm');}