Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d62a67aafe | ||
|
|
c6cc9d4164 | ||
|
|
add8c5144c |
@@ -153,7 +153,7 @@ class Admin extends AdminController
|
||||
public function delete(Request $request): void
|
||||
{
|
||||
$this->checkPostRequest();
|
||||
$id = $request->post('id');
|
||||
$id = $request->param('id');
|
||||
$row = $this->model->whereIn('id', $id)->select();
|
||||
$row->isEmpty() && $this->error('数据不存在');
|
||||
$id == AdminConstant::SUPER_ADMIN_ID && $this->error('超级管理员不允许修改');
|
||||
|
||||
@@ -135,7 +135,7 @@ class Menu extends AdminController
|
||||
public function delete(Request $request): void
|
||||
{
|
||||
$this->checkPostRequest();
|
||||
$id = $request->post('id');
|
||||
$id = $request->param('id');
|
||||
$row = $this->model->whereIn('id', $id)->select();
|
||||
empty($row) && $this->error('数据不存在');
|
||||
try {
|
||||
|
||||
@@ -19,6 +19,7 @@ if (!function_exists('__url')) {
|
||||
*/
|
||||
function __url(string $url = '', array $vars = [], bool $suffix = true, bool $domain = false): string
|
||||
{
|
||||
if (filter_var($url, FILTER_VALIDATE_URL)) return $url;
|
||||
return url($url, $vars, $suffix, $domain)->build();
|
||||
}
|
||||
}
|
||||
|
||||
2
public/static/plugs/easymde/easymde.min.js
vendored
2
public/static/plugs/easymde/easymde.min.js
vendored
@@ -8184,7 +8184,7 @@
|
||||
if (!1 === e.autoDownloadFontAwesome && (t = !1), !0 !== e.autoDownloadFontAwesome) for (var n = document.styleSheets, i = 0; i < n.length; i++) n[i].href && n[i].href.indexOf("//maxcdn.bootstrapcdn.com/font-awesome/") > -1 && (t = !1);
|
||||
if (t) {
|
||||
var r = document.createElement("link");
|
||||
r.rel = "stylesheet", r.href = "https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css", document.getElementsByTagName("head")[0].appendChild(r)
|
||||
r.rel = "stylesheet", r.href = "/static/plugs/font-awesome-4.7.0/css/font-awesome.min.css", document.getElementsByTagName("head")[0].appendChild(r)
|
||||
}
|
||||
if (e.element) this.element = e.element; else if (null === e.element) return void console.log("EasyMDE: Error. No element was found.");
|
||||
if (void 0 === e.toolbar) for (var o in e.toolbar = [], te) Object.prototype.hasOwnProperty.call(te, o) && (-1 != o.indexOf("separator-") && e.toolbar.push("|"), (!0 === te[o].default || e.showIcons && e.showIcons.constructor === Array && -1 != e.showIcons.indexOf(o)) && e.toolbar.push(o));
|
||||
|
||||
Reference in New Issue
Block a user