evoxwht преди 2 години
родител
ревизия
35a77c0ddc
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      crmeb/app/services/system/admin/SystemAdminServices.php

+ 1 - 1
crmeb/app/services/system/admin/SystemAdminServices.php

@@ -136,7 +136,7 @@ class SystemAdminServices extends BaseServices
             'user_info' => [
             'user_info' => [
                 'id' => $adminInfo->getData('id'),
                 'id' => $adminInfo->getData('id'),
                 'account' => $adminInfo->getData('account'),
                 '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'),
                 'level' => $adminInfo->getData('level'),
                 'real_name' => $adminInfo->getData('real_name'),
                 'real_name' => $adminInfo->getData('real_name'),
             ],
             ],