diff --git a/app/middleware/LogedCheck.php b/app/middleware/LogedCheck.php index 20df583..c15f9e0 100644 --- a/app/middleware/LogedCheck.php +++ b/app/middleware/LogedCheck.php @@ -9,7 +9,7 @@ class LogedCheck { //已登陆跳出 if(Session::has('user_id')){ - return redirect('user/index'); + return redirect('/index/user/index'); } return $next($request); } diff --git a/app/middleware/LoginCheck.php b/app/middleware/LoginCheck.php index 26afe81..91e4d7e 100644 --- a/app/middleware/LoginCheck.php +++ b/app/middleware/LoginCheck.php @@ -11,7 +11,7 @@ class LoginCheck if(Session::has('user_id')){ return $next($request); } else { - return redirect('/login/index'); + return redirect('/index/login'); } } } diff --git a/config/app.php b/config/app.php index 1cfaf5c..356f4d7 100644 --- a/config/app.php +++ b/config/app.php @@ -25,7 +25,7 @@ return [ 'deny_app_list' => [], // 异常页面的模板文件 - 'exception_tmpl' => app()->getThinkPath() . 'tpl/think_exception.tpl', + 'exception_tmpl' => '../view/404.html', // 错误显示信息,非调试模式有效 'error_message' => '页面错误!请稍后再试~', diff --git a/public/static/res/mods/index.js b/public/static/res/mods/index.js index 2cdea95..3868544 100644 --- a/public/static/res/mods/index.js +++ b/public/static/res/mods/index.js @@ -817,13 +817,13 @@ layui.define(['layer', 'laytpl', 'form', 'element', 'upload', 'util'], function( loading = layer.load(2, { shade: [0.2, '#000'] }); - location.href = '/add'; + location.href = '/index/add'; } else { layer.msg('请先登陆',{ icon:5, time:2000 },function () { - location.href = '/login/index'; + location.href = '/index/login'; }); } return false; @@ -856,7 +856,7 @@ layui.define(['layer', 'laytpl', 'form', 'element', 'upload', 'util'], function( ,click: function(type){ if(type === 'bar1'){ //slayer.msg('打开 index.js,开启发表新帖的路径'); - location.href = '/add'; + location.href = '/index/add'; } } }); diff --git a/view/index/article/detail.html b/view/index/article/detail.html index c792969..718e6cc 100644 --- a/view/index/article/detail.html +++ b/view/index/article/detail.html @@ -215,7 +215,7 @@ {volist name="ad_comm" id="vo"} {/volist} -

微信扫码关注 layui 公众号

+

QQ扫码加入TaoLer官群