mirror of
https://github.com/acepanel/panel.git
synced 2026-02-05 20:47:18 +08:00
特性(网站):新增备份功能及问题修复
This commit is contained in:
@@ -286,7 +286,10 @@ class PluginsController extends Controller
|
||||
return response()->json($data);
|
||||
}
|
||||
|
||||
Plugin::query()->where('slug', $slug)->update(['show' => $show]);
|
||||
Plugin::query()->where('slug', $slug)->updateOrInsert(
|
||||
['slug' => $slug],
|
||||
['show' => $show]
|
||||
);
|
||||
$res['code'] = 0;
|
||||
$res['msg'] = 'success';
|
||||
$res['data'] = '设置成功';
|
||||
|
||||
Reference in New Issue
Block a user