一般帐户登录权限的排除
This commit is contained in:
parent
1bb9fc4127
commit
0442cb5650
@ -15,7 +15,7 @@ class Login
|
||||
{
|
||||
|
||||
if(Session::has('admin_id')){
|
||||
return redirect('/admin/index/index');
|
||||
return redirect((string) url('index/index'));
|
||||
}
|
||||
|
||||
if(Request::isAjax()){
|
||||
@ -33,7 +33,7 @@ class Login
|
||||
$res = $user->login($data);
|
||||
|
||||
if ($res == 1) {
|
||||
$res = ['code'=>0,'msg'=>'登陆成功'];
|
||||
$res = ['code'=>0,'msg'=>'登陆成功' 'url'=>(string) url('index/index')];
|
||||
//$res['data']['access_token'] = $data['__token__'];
|
||||
} else {
|
||||
$res = ['code'=>-1,'msg'=>$res,'url'=>'admin/login'];
|
||||
|
@ -8,7 +8,7 @@
|
||||
<!-- 主体内容 -->
|
||||
<div class="layui-body" id="LAY_app_body">
|
||||
<div class="layadmin-tabsbody-item layui-show">
|
||||
<iframe src="home.html" frameborder="0" class="layadmin-iframe"></iframe>
|
||||
<iframe src="../index/home.html" frameborder="0" class="layadmin-iframe"></iframe>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -26,7 +26,7 @@ class Auth
|
||||
//登陆后检验权限
|
||||
if (Session::has('admin_id')) {
|
||||
// 排除权限
|
||||
$not_check = ['admin/Index/index','admin/Index/home','admin/Set/info','admin/Set/password','admin/User/logout'];
|
||||
$not_check = ['admin/Login/index','admin/Index/index','admin/Index/home','admin/Set/info','admin/Set/password','admin/User/logout'];
|
||||
|
||||
if (!in_array($app . '/' . $controller . '/' . $action, $not_check)) {
|
||||
$auth = new UserAuth();
|
||||
|
@ -859,22 +859,6 @@ layui.define(['layer', 'laytpl', 'form', 'element', 'upload', 'util'], function(
|
||||
if(type === 'bar1'){
|
||||
//slayer.msg('打开 index.js,开启发表新帖的路径');
|
||||
location.href = articleAdd;
|
||||
}
|
||||
//分享
|
||||
if(type === 'bar2'){
|
||||
if(navigator.userAgent.indexOf("Html5Plus") > -1) {
|
||||
//5+ 原生分享
|
||||
window.plusShare({
|
||||
title: "my-app-name",//应用名字
|
||||
content: "分享具体内容",
|
||||
href: location.href,//分享出去后,点击跳转地址
|
||||
thumbs: ["/static/share/icon/wx.png"] //分享缩略图
|
||||
}, function(result) {
|
||||
//分享回调
|
||||
});
|
||||
} else {
|
||||
//原有wap分享实现
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user