2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-05 20:47:18 +08:00

特性(网站):新增备份功能及问题修复

This commit is contained in:
耗子
2022-12-02 23:55:45 +08:00
parent b4b43cb4c4
commit 642d3339fc
18 changed files with 802 additions and 92 deletions

View File

@@ -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'] = '设置成功';