* [bug#50551,done,0.2h] change the mode of alert.

This commit is contained in:
tianshujie
2024-06-03 15:42:28 +08:00
committed by caoyanyi
parent edd95a7e6a
commit 34da9d3ddc
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -1144,6 +1144,11 @@ class baseControl
foreach($message as $item => $errors) $message[$item] = implode(',', $errors);
return helper::end(js::alert(strip_tags(implode('\n', $message))));
}
elseif(!$_SERVER['HTTP_REFERER'] && !empty($data['load']['alert']))
{
if(empty($data['load']['locate'])) return helper::end(js::alert($data['load']['alert']));
return helper::end(js::alert($data['load']['alert']) . js::locate($data['load']['locate']));
}
return helper::end('fail');
}
}