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'), ],