From ffd0060fd0875b835ed66caa1bc9f947eb67be10 Mon Sep 17 00:00:00 2001 From: Karson Date: Tue, 17 Dec 2019 17:09:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=B6=85=E7=BA=A7=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=91=98=E5=BC=80=E5=85=B3=E6=97=A0=E6=9D=83=E9=99=90?= =?UTF-8?q?=E7=9A=84BUG=20=E7=A7=BB=E9=99=A4=E5=89=8D=E5=8F=B0=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E9=A6=96=E9=A1=B5=E7=89=88=E6=9C=AC=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/library/traits/Backend.php | 4 ++-- application/index/view/index/index.html | 24 -------------------- 2 files changed, 2 insertions(+), 26 deletions(-) diff --git a/application/admin/library/traits/Backend.php b/application/admin/library/traits/Backend.php index a252cf33..d365dea6 100755 --- a/application/admin/library/traits/Backend.php +++ b/application/admin/library/traits/Backend.php @@ -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); diff --git a/application/index/view/index/index.html b/application/index/view/index/index.html index 3d52cb30..a7e3baa7 100755 --- a/application/index/view/index/index.html +++ b/application/index/view/index/index.html @@ -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) { - - } - });