切换导航条
此项目
正在载入...
登录
何书鹏
/
recruit
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
Karson
5 years ago
提交
ffd0060fd0875b835ed66caa1bc9f947eb67be10
1 个父辈
088d2722
修复超级管理员开关无权限的BUG
移除前台默认首页版本统计
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
2 行增加
和
26 行删除
application/admin/library/traits/Backend.php
application/index/view/index/index.html
application/admin/library/traits/Backend.php
查看文件 @
ffd0060
...
...
@@ -310,8 +310,8 @@ trait Backend
if
(
$ids
)
{
if
(
$this
->
request
->
has
(
'params'
))
{
parse_str
(
$this
->
request
->
post
(
"params"
),
$values
);
$values
=
array_intersect_key
(
$values
,
array_flip
(
is_array
(
$this
->
multiFields
)
?
$this
->
multiFields
:
explode
(
','
,
$this
->
multiFields
)));
if
(
$values
||
$this
->
auth
->
isSuperAdmin
())
{
$values
=
$this
->
auth
->
isSuperAdmin
()
?
$values
:
array_intersect_key
(
$values
,
array_flip
(
is_array
(
$this
->
multiFields
)
?
$this
->
multiFields
:
explode
(
','
,
$this
->
multiFields
)));
if
(
$values
)
{
$adminIds
=
$this
->
getDataLimitAdminIds
();
if
(
is_array
(
$adminIds
))
{
$this
->
model
->
where
(
$this
->
dataLimitField
,
'in'
,
$adminIds
);
...
...
application/index/view/index/index.html
查看文件 @
ffd0060
...
...
@@ -175,30 +175,6 @@
$
(
window
).
on
(
"scroll"
,
function
()
{
$
(
"#mainNav"
).
toggleClass
(
"affix"
,
$
(
window
).
height
()
-
$
(
window
).
scrollTop
()
<=
50
);
});
// 发送版本统计信息,请移除
try
{
var
installed
=
localStorage
.
getItem
(
"installed"
);
if
(
!
installed
)
{
$
.
ajax
({
url
:
"{$Think.config.fastadmin.api_url}/statistics/installed"
,
data
:
{
version
:
"{:config('fastadmin.version')}"
,
os
:
"{$Think.PHP_OS}"
,
sapi
:
"{$Think.PHP_SAPI}"
,
tpversion
:
"{$Think.THINK_VERSION}"
,
phpversion
:
"{$Think.PHP_VERSION}"
,
software
:
"{$Request.server.SERVER_SOFTWARE}"
,
url
:
location
.
href
,
},
dataType
:
'jsonp'
,
});
localStorage
.
setItem
(
"installed"
,
true
);
}
}
catch
(
e
)
{
}
});
</script>
...
...
请
注册
或
登录
后发表评论