mirror of https://gitee.com/karson/fastadmin.git
parent
088d272257
commit
ffd0060fd0
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue