mirror of
https://github.com/v2board/v2board.git
synced 2025-06-13 13:17:52 +08:00
add server rules
This commit is contained in:
@ -40,6 +40,11 @@ class ServerController extends Controller
|
||||
if (isset($params['tags'])) {
|
||||
$params['tags'] = json_encode($params['tags']);
|
||||
}
|
||||
if (isset($params['rules'])) {
|
||||
if (!is_object(json_decode($params['rules']))) {
|
||||
abort(500, '审计规则配置格式不正确');
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($params['settings'])) {
|
||||
if (!is_object(json_decode($params['settings']))) {
|
||||
|
Reference in New Issue
Block a user