This commit is contained in:
Tokumeikoi
2020-03-31 00:34:25 +08:00
parent 4b4d777a4e
commit dfdf995ddb
3 changed files with 10 additions and 2 deletions

View File

@ -42,6 +42,12 @@ class ServerController extends Controller
$params['tags'] = json_encode($params['tags']);
}
if (isset($params['dnsSettings'])) {
if (!is_object(json_decode($params['dnsSettings']))) {
abort(500, 'DNS规则配置格式不正确');
}
}
if (isset($params['ruleSettings'])) {
if (!is_object(json_decode($params['ruleSettings']))) {
abort(500, '审计规则配置格式不正确');