UI调整:在系统参数配置中移除 chatbot_enabled 显示,统一由AI厂商配置专用入口管理

This commit is contained in:
2026-02-27 09:41:47 +08:00
parent 44ac4742d8
commit 5e6101483d
@@ -29,11 +29,13 @@ class SystemController extends Controller
*/ */
public function edit(): View public function edit(): View
{ {
// 读取数据库中最新的参数 // 读取数据库中最新的参数 (剔除专属模块已接管的配置,避免重复显示)
$params = SysParam::all()->pluck('body', 'alias')->toArray(); $params = SysParam::whereNotIn('alias', ['chatbot_enabled'])
->get()->pluck('body', 'alias')->toArray();
// 为后台界面准备的文案对照 (可动态化或硬编码) // 为后台界面准备的文案对照 (可动态化或硬编码)
$descriptions = SysParam::all()->pluck('guidetxt', 'alias')->toArray(); $descriptions = SysParam::whereNotIn('alias', ['chatbot_enabled'])
->get()->pluck('guidetxt', 'alias')->toArray();
return view('admin.system.edit', compact('params', 'descriptions')); return view('admin.system.edit', compact('params', 'descriptions'));
} }