소스 검색

默认头像

lizhen_gitee 9 달 전
부모
커밋
ce851ac6a2
3개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      application/common/library/Auth.php
  2. 1 1
      application/common/library/Authdoctor.php
  3. 2 0
      application/extra/site.php

+ 1 - 1
application/common/library/Auth.php

@@ -171,7 +171,7 @@ class Auth
             'mobile'   => $mobile,
 //            'level'    => 1,
 //            'score'    => 0,
-            'avatar'   => '',
+            'avatar'   => config('site.user_default_avatar'),
         ];
         $params = array_merge($data, [
 //            'nickname'  => preg_match("/^1[3-9]{1}\d{9}$/", $username) ? substr_replace($username, '****', 3, 4) : $username,

+ 1 - 1
application/common/library/Authdoctor.php

@@ -198,7 +198,7 @@ class Authdoctor
             'mobile'   => $mobile,
 //            'level'    => 1,
 //            'score'    => 0,
-            'avatar'   => '',
+            'avatar'   => config('site.doctor_default_avatar'),
         ];
         $params = array_merge($data, [
 //            'nickname'  => preg_match("/^1[3-9]{1}\d{9}$/", $username) ? substr_replace($username, '****', 3, 4) : $username,

+ 2 - 0
application/extra/site.php

@@ -97,4 +97,6 @@ return array (
   'index_jiuyipeizhen' => '/uploads/20240428/85e048031609eb5fcb29d0b901a5c82c.png',
   'index_hulipeihu' => '/uploads/20240428/85e048031609eb5fcb29d0b901a5c82c.png',
   'payorder_userrefund_bili' => '70',
+  'user_default_avatar' => '/uploads/20240522/47eb7f0430d48a73346b1630692e20ae.png',
+  'doctor_default_avatar' => '/uploads/20240522/0ef07f0074612b077bdf9a0da1cd1182.png',
 );