* give up on brs.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -98,7 +98,7 @@ $(function() {
|
||||
}
|
||||
else
|
||||
{
|
||||
$.zui.messager.danger(data.message.replace('<br>', ' '));
|
||||
$.zui.messager.danger(data.message);
|
||||
}
|
||||
},
|
||||
complete: function() {$.enableForm('#mainForm');}
|
||||
|
||||
Reference in New Issue
Block a user