diff --git a/app/admin/view/friend_link/index.html b/app/admin/view/friend_link/index.html index 75f4c9f..ff9a17b 100644 --- a/app/admin/view/friend_link/index.html +++ b/app/admin/view/friend_link/index.html @@ -52,7 +52,7 @@
@@ -144,14 +144,14 @@ }, events: { 'click .btn-edit': function (event, value, row, index) { - iframe.createIframe('修改友链', '/admin/friendlink/edit?id=' + row.id) + iframe.createIframe('修改友链', '/admin/friend_link/edit?id=' + row.id) }, } }], onEditableSave: function (field, row) { $.ajax({ type: "post", - url: "/admin/friendlink/save", + url: "/admin/friend_link/save", data: row, success: function (res) { if (res.code == 200 || res.status == 200) { @@ -185,7 +185,7 @@ var newstate = (value == 1) ? 0 : 1; // 发送参数值跟当前参数值相反 $.ajax({ type: "post", - url: "/admin/friendlink/field?id=" + id, + url: "/admin/friend_link/field?id=" + id, data: {field: field, value: newstate}, dataType: 'json', success: function (res) { @@ -210,7 +210,7 @@ text: '确认', btnClass: 'btn-danger', action: function () { - $.post("/admin/friendlink/del", data = {id: id}, function (res) { + $.post("/admin/friend_link/del", data = {id: id}, function (res) { if (res.status == 200 || res.code == 200) lightyear.notify(res.msg, 'success', 3000, 'mdi mdi-emoticon-happy', 'top', 'center'); else lightyear.notify(res.msg, 'danger', 3000, 'mdi mdi-emoticon-neutral', 'top', 'center'); location.reload(); @@ -242,7 +242,7 @@ text: '确认', btnClass: 'btn-danger', action: function () { - $.post("/admin/friendlink/del", data = {id: checkID}, function (res) { + $.post("/admin/friend_link/del", data = {id: checkID}, function (res) { if (res.status == 200 || res.code == 200) { lightyear.notify(res.msg, 'success', 3000, 'mdi mdi-emoticon-happy', 'top', 'center'); location.reload(); diff --git a/public/install/ape_blog.sql b/public/install/ape_blog.sql index 61ca064..d244e4f 100644 --- a/public/install/ape_blog.sql +++ b/public/install/ape_blog.sql @@ -106,7 +106,7 @@ INSERT INTO `ape_admin_auth` VALUES (26, '主题管理', 'mdi mdi-store', 0, 'ad INSERT INTO `ape_admin_auth` VALUES (27, '主题管理', '', 26, 'admin', 'theme', 'index', '', '', 0, 0, 1, '/admin/theme/index', 0, 1, '1', '', 1613400349, 1582093161); INSERT INTO `ape_admin_auth` VALUES (28, '主题商店', '', 26, 'admin', 'theme', 'store', '', '', 0, 0, 0, '/admin/theme/store', 0, 1, '1', '1', 1613400389, 1642946978); INSERT INTO `ape_admin_auth` VALUES (29, '友链管理', 'mdi mdi-account-card-details', 0, 'admin', 'friend_link', 'index', '', '', 0, 0, 1, '/admin/friend_link/index', 0, 1, '1', '1', 1613400510, 1642947636); -INSERT INTO `ape_admin_auth` VALUES (30, '友链列表', '', 34, 'admin', 'friendlink', 'index', '', '', 0, 0, 1, '/admin/friendlink/index', 0, 1, '1', '', 1613400539, 1582093161); +INSERT INTO `ape_admin_auth` VALUES (30, '友链列表', '', 34, 'admin', 'friendlink', 'index', '', '', 0, 0, 1, '/admin/friend_link/index', 0, 1, '1', '', 1613400539, 1582093161); INSERT INTO `ape_admin_auth` VALUES (31, '数据库管理', '', 8, 'admin', 'databases', 'index', '', '', 0, 0, 1, '/admin/databases/index', 0, 1, '1', '', 1635572569, 1635572671); INSERT INTO `ape_admin_auth` VALUES (32, '友链管理', '', 29, 'admin', 'friend_link', 'index', '', '', 0, 0, 1, '/admin/friend_link/index', 0, 1, '1', '1', 1642089882, 1642947643);