Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenDocCN
lightCMS
提交
82df683a
L
lightCMS
项目概览
OpenDocCN
/
lightCMS
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
lightCMS
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
82df683a
编写于
3月 15, 2019
作者:
孙
孙建华
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
redirect
上级
b07b85da
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
34 addition
and
34 deletion
+34
-34
app/Http/Controllers/Admin/AdminUserController.php
app/Http/Controllers/Admin/AdminUserController.php
+5
-5
app/Http/Controllers/Admin/Auth/LoginController.php
app/Http/Controllers/Admin/Auth/LoginController.php
+1
-1
app/Http/Controllers/Admin/CategoryController.php
app/Http/Controllers/Admin/CategoryController.php
+4
-4
app/Http/Controllers/Admin/ConfigController.php
app/Http/Controllers/Admin/ConfigController.php
+4
-4
app/Http/Controllers/Admin/EntityController.php
app/Http/Controllers/Admin/EntityController.php
+4
-4
app/Http/Controllers/Admin/EntityFieldController.php
app/Http/Controllers/Admin/EntityFieldController.php
+4
-4
app/Http/Controllers/Admin/MenuController.php
app/Http/Controllers/Admin/MenuController.php
+7
-7
app/Http/Controllers/Admin/RoleController.php
app/Http/Controllers/Admin/RoleController.php
+5
-5
未找到文件。
app/Http/Controllers/Admin/AdminUserController.php
浏览文件 @
82df683a
...
...
@@ -76,13 +76,13 @@ class AdminUserController extends Controller
return
[
'code'
=>
0
,
'msg'
=>
'新增成功'
,
'redirect'
=>
route
(
'admin::adminUser.index'
)
'redirect'
=>
true
];
}
catch
(
QueryException
$e
)
{
return
[
'code'
=>
1
,
'msg'
=>
'新增失败:'
.
(
Str
::
contains
(
$e
->
getMessage
(),
'Duplicate entry'
)
?
'当前用户已存在'
:
'其它错误'
),
'redirect'
=>
route
(
'admin::adminUser.index'
)
'redirect'
=>
false
];
}
}
...
...
@@ -121,13 +121,13 @@ class AdminUserController extends Controller
return
[
'code'
=>
0
,
'msg'
=>
'编辑成功'
,
'redirect'
=>
route
(
'admin::adminUser.index'
)
'redirect'
=>
true
];
}
catch
(
QueryException
$e
)
{
return
[
'code'
=>
1
,
'msg'
=>
'编辑失败:'
.
(
Str
::
contains
(
$e
->
getMessage
(),
'Duplicate entry'
)
?
'当前用户已存在'
:
'其它错误'
),
'redirect'
=>
route
(
'admin::adminUser.index'
)
'redirect'
=>
false
];
}
}
...
...
@@ -167,7 +167,7 @@ class AdminUserController extends Controller
return
[
'code'
=>
0
,
'msg'
=>
'操作成功'
,
'redirect'
=>
route
(
'admin::adminUser.index'
)
'redirect'
=>
true
];
}
catch
(
\
Throwable
$e
)
{
return
[
...
...
app/Http/Controllers/Admin/Auth/LoginController.php
浏览文件 @
82df683a
...
...
@@ -102,7 +102,7 @@ class LoginController extends Controller
return
[
'code'
=>
0
,
'msg'
=>
'登陆成功'
,
'redirect'
=>
route
(
'admin::index'
),
'redirect'
=>
true
];
}
}
app/Http/Controllers/Admin/CategoryController.php
浏览文件 @
82df683a
...
...
@@ -82,13 +82,13 @@ class CategoryController extends Controller
return
[
'code'
=>
0
,
'msg'
=>
'新增成功'
,
'redirect'
=>
route
(
'admin::category.index'
)
'redirect'
=>
true
];
}
catch
(
QueryException
$e
)
{
return
[
'code'
=>
1
,
'msg'
=>
'新增失败:'
.
(
Str
::
contains
(
$e
->
getMessage
(),
'Duplicate entry'
)
?
'当前分类已存在'
:
'其它错误'
),
'redirect'
=>
route
(
'admin::category.index'
)
'redirect'
=>
false
];
}
}
...
...
@@ -122,13 +122,13 @@ class CategoryController extends Controller
return
[
'code'
=>
0
,
'msg'
=>
'编辑成功'
,
'redirect'
=>
route
(
'admin::category.index'
)
'redirect'
=>
true
];
}
catch
(
QueryException
$e
)
{
return
[
'code'
=>
1
,
'msg'
=>
'编辑失败:'
.
(
Str
::
contains
(
$e
->
getMessage
(),
'Duplicate entry'
)
?
'当前分类已存在'
:
'其它错误'
),
'redirect'
=>
route
(
'admin::category.index'
)
'redirect'
=>
false
];
}
}
...
...
app/Http/Controllers/Admin/ConfigController.php
浏览文件 @
82df683a
...
...
@@ -75,13 +75,13 @@ class ConfigController extends Controller
return
[
'code'
=>
0
,
'msg'
=>
'新增成功'
,
'redirect'
=>
route
(
'admin::config.index'
)
'redirect'
=>
true
];
}
catch
(
QueryException
$e
)
{
return
[
'code'
=>
1
,
'msg'
=>
'新增失败:'
.
(
Str
::
contains
(
$e
->
getMessage
(),
'Duplicate entry'
)
?
'当前配置已存在'
:
'其它错误'
),
'redirect'
=>
route
(
'admin::config.index'
)
'redirect'
=>
false
];
}
}
...
...
@@ -116,13 +116,13 @@ class ConfigController extends Controller
return
[
'code'
=>
0
,
'msg'
=>
'编辑成功'
,
'redirect'
=>
route
(
'admin::config.index'
)
'redirect'
=>
true
];
}
catch
(
QueryException
$e
)
{
return
[
'code'
=>
1
,
'msg'
=>
'编辑失败:'
.
(
Str
::
contains
(
$e
->
getMessage
(),
'Duplicate entry'
)
?
'当前配置已存在'
:
'其它错误'
),
'redirect'
=>
route
(
'admin::config.index'
)
'redirect'
=>
false
];
}
}
...
...
app/Http/Controllers/Admin/EntityController.php
浏览文件 @
82df683a
...
...
@@ -74,14 +74,14 @@ class EntityController extends Controller
return
[
'code'
=>
0
,
'msg'
=>
'新增成功'
,
'redirect'
=>
route
(
'admin::entity.index'
)
'redirect'
=>
true
];
}
catch
(
QueryException
$e
)
{
Log
::
error
(
$e
);
return
[
'code'
=>
1
,
'msg'
=>
'新增失败:'
.
(
Str
::
contains
(
$e
->
getMessage
(),
'Duplicate entry'
)
?
'当前模型已存在'
:
'其它错误'
),
'redirect'
=>
route
(
'admin::entity.index'
)
'redirect'
=>
false
];
}
}
...
...
@@ -116,14 +116,14 @@ class EntityController extends Controller
return
[
'code'
=>
0
,
'msg'
=>
'编辑成功'
,
'redirect'
=>
route
(
'admin::entity.index'
)
'redirect'
=>
true
];
}
catch
(
QueryException
$e
)
{
Log
::
error
(
$e
);
return
[
'code'
=>
1
,
'msg'
=>
'编辑失败:'
.
(
Str
::
contains
(
$e
->
getMessage
(),
'Duplicate entry'
)
?
'当前模型已存在'
:
'其它错误'
),
'redirect'
=>
route
(
'admin::entity.index'
)
'redirect'
=>
false
];
}
}
...
...
app/Http/Controllers/Admin/EntityFieldController.php
浏览文件 @
82df683a
...
...
@@ -123,7 +123,7 @@ class EntityFieldController extends Controller
return
[
'code'
=>
0
,
'msg'
=>
'新增成功'
,
'redirect'
=>
route
(
'admin::entityField.index'
)
'redirect'
=>
true
];
}
catch
(
\
Throwable
$e
)
{
\
Log
::
error
(
$e
);
...
...
@@ -180,14 +180,14 @@ class EntityFieldController extends Controller
return
[
'code'
=>
0
,
'msg'
=>
'编辑成功'
,
'redirect'
=>
route
(
'admin::entityField.index'
)
'redirect'
=>
true
];
}
catch
(
QueryException
$e
)
{
\
Log
::
error
(
$e
);
return
[
'code'
=>
1
,
'msg'
=>
'编辑失败:'
.
(
Str
::
contains
(
$e
->
getMessage
(),
'Duplicate entry'
)
?
'当前模型字段已存在'
:
'其它错误'
),
'redirect'
=>
route
(
'admin::entityField.index'
)
'redirect'
=>
false
];
}
}
...
...
@@ -209,7 +209,7 @@ class EntityFieldController extends Controller
return
[
'code'
=>
0
,
'msg'
=>
'删除成功'
,
'redirect'
=>
route
(
'admin::menu.index'
)
'redirect'
=>
true
];
}
catch
(
ModelNotFoundException
$e
)
{
return
[
...
...
app/Http/Controllers/Admin/MenuController.php
浏览文件 @
82df683a
...
...
@@ -88,13 +88,13 @@ class MenuController extends Controller
return
[
'code'
=>
0
,
'msg'
=>
'新增成功'
,
'redirect'
=>
route
(
'admin::menu.index'
)
'redirect'
=>
true
];
}
catch
(
QueryException
$e
)
{
return
[
'code'
=>
1
,
'msg'
=>
'新增失败:'
.
(
Str
::
contains
(
$e
->
getMessage
(),
'Duplicate entry'
)
?
'当前菜单已存在'
:
'其它错误'
),
'redirect'
=>
route
(
'admin::menu.index'
)
'redirect'
=>
false
];
}
}
...
...
@@ -130,13 +130,13 @@ class MenuController extends Controller
return
[
'code'
=>
0
,
'msg'
=>
'编辑成功'
,
'redirect'
=>
route
(
'admin::menu.index'
)
'redirect'
=>
true
];
}
catch
(
QueryException
$e
)
{
return
[
'code'
=>
1
,
'msg'
=>
'编辑失败:'
.
(
Str
::
contains
(
$e
->
getMessage
(),
'Duplicate entry'
)
?
'当前菜单已存在'
:
'其它错误'
),
'redirect'
=>
route
(
'admin::menu.index'
)
'redirect'
=>
false
];
}
}
...
...
@@ -153,13 +153,13 @@ class MenuController extends Controller
return
[
'code'
=>
0
,
'msg'
=>
'删除成功'
,
'redirect'
=>
route
(
'admin::menu.index'
)
'redirect'
=>
true
];
}
catch
(
\
RuntimeException
$e
)
{
return
[
'code'
=>
1
,
'msg'
=>
'删除失败:'
.
$e
->
getMessage
(),
'redirect'
=>
route
(
'admin::menu.index'
)
'redirect'
=>
false
];
}
}
...
...
@@ -228,7 +228,7 @@ class MenuController extends Controller
return
[
'code'
=>
0
,
'msg'
=>
"更新成功。新增菜单数:
{
$addNum
}
,更新菜单数:
{
$updateNum
}
。"
,
'redirect'
=>
route
(
'admin::menu.index'
)
'redirect'
=>
true
];
}
...
...
app/Http/Controllers/Admin/RoleController.php
浏览文件 @
82df683a
...
...
@@ -80,13 +80,13 @@ class RoleController extends Controller
return
[
'code'
=>
0
,
'msg'
=>
'新增成功'
,
'redirect'
=>
route
(
'admin::role.index'
)
'redirect'
=>
true
];
}
catch
(
QueryException
$e
)
{
return
[
'code'
=>
1
,
'msg'
=>
'新增失败:'
.
(
Str
::
contains
(
$e
->
getMessage
(),
'Duplicate entry'
)
?
'当前角色已存在'
:
'其它错误'
),
'redirect'
=>
route
(
'admin::role.index'
)
'redirect'
=>
false
];
}
}
...
...
@@ -120,13 +120,13 @@ class RoleController extends Controller
return
[
'code'
=>
0
,
'msg'
=>
'编辑成功'
,
'redirect'
=>
route
(
'admin::role.index'
)
'redirect'
=>
true
];
}
catch
(
QueryException
$e
)
{
return
[
'code'
=>
1
,
'msg'
=>
'编辑失败:'
.
(
Str
::
contains
(
$e
->
getMessage
(),
'Duplicate entry'
)
?
'当前角色已存在'
:
'其它错误'
),
'redirect'
=>
route
(
'admin::role.index'
)
'redirect'
=>
false
];
}
}
...
...
@@ -165,7 +165,7 @@ class RoleController extends Controller
return
[
'code'
=>
0
,
'msg'
=>
'操作成功'
,
'redirect'
=>
route
(
'admin::role.index'
),
'redirect'
=>
true
];
}
catch
(
\
Throwable
$e
)
{
Log
::
debug
(
$e
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录