From 084526104f792b0ef161067e8e70c4d344fe9b4a Mon Sep 17 00:00:00 2001 From: evoxwht <442384644@qq.com> Date: Thu, 27 Apr 2023 17:56:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=90=8C=E6=AD=A5=E8=B7=AF?= =?UTF-8?q?=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/app/adminapi/controller/v1/setting/SystemMenus.php | 2 +- crmeb/app/services/system/admin/SystemAdminServices.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crmeb/app/adminapi/controller/v1/setting/SystemMenus.php b/crmeb/app/adminapi/controller/v1/setting/SystemMenus.php index f69d1bef8..2c17f4aa6 100644 --- a/crmeb/app/adminapi/controller/v1/setting/SystemMenus.php +++ b/crmeb/app/adminapi/controller/v1/setting/SystemMenus.php @@ -142,7 +142,7 @@ class SystemMenus extends AuthController if ($attPath) { $pathData = []; foreach ($attPath as $vv) { - if (strstr($vv, '<') === false || strstr($vv, '?>') === false) { + if (strstr($vv, '<') === false) { $pathData[] = $vv; } } diff --git a/crmeb/app/services/system/admin/SystemAdminServices.php b/crmeb/app/services/system/admin/SystemAdminServices.php index 7a13fac82..366f64452 100644 --- a/crmeb/app/services/system/admin/SystemAdminServices.php +++ b/crmeb/app/services/system/admin/SystemAdminServices.php @@ -136,7 +136,7 @@ class SystemAdminServices extends BaseServices 'user_info' => [ 'id' => $adminInfo->getData('id'), 'account' => $adminInfo->getData('account'), - 'head_pic' => $adminInfo->getData('head_pic'), + 'head_pic' => get_file_link($adminInfo->getData('head_pic')), 'level' => $adminInfo->getData('level'), 'real_name' => $adminInfo->getData('real_name'), ],