@extends('admin.layouts.app') @section('title', '系统参数配置') @section('content')

修改系统运行参数

保存后会同步更新 Redis 缓存,前台实时生效。

通用系统参数页仅维护低敏公共配置;SMTP、VIP 支付、微信机器人、AI 机器人等站长专属敏感项已迁移到各自独立页面。
@csrf @method('PUT')
@forelse ($params as $alias => $body) @php $fieldValue = (string) $body; $shouldUseTextarea = strlen($fieldValue) > 50 || str_contains($fieldValue, "\n") || str_contains($fieldValue, '<'); $isMaxLevelField = $alias === 'maxlevel'; $isSuperLevelField = $alias === 'superlevel'; @endphp
@if ($isMaxLevelField)

修改后会自动同步管理员级别为“最高等级 + 1”。

@elseif ($isSuperLevelField)

该值会随“用户最高可达等级”自动计算,仅用于展示当前结果。

@elseif ($shouldUseTextarea) @else @endif
@empty
当前没有可在通用系统页维护的公共参数,请前往对应专属配置页处理敏感模块参数。
@endforelse
@endsection