管理员头像处理

This commit is contained in:
evoxwht 2023-05-29 17:09:01 +08:00
parent 1e6fa62cef
commit 35a77c0ddc

View File

@ -136,7 +136,7 @@ class SystemAdminServices extends BaseServices
'user_info' => [
'id' => $adminInfo->getData('id'),
'account' => $adminInfo->getData('account'),
'head_pic' => strpos($adminInfo->getData('head_pic'), '/statics/system_images/') !== false ? get_file_link($adminInfo->getData('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'),
],