lizhen_gitee 4 miesięcy temu
rodzic
commit
921865c146

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

@@ -148,7 +148,7 @@ class Auth
 
         $data = [
             'mobile'   => $mobile,
-            'avatar'   => config('default_avatar'),
+            'avatar'   => config('site.default_avatar'),
             'nickname'  => $this->get_rand_nick_name(),
         ];
         $params = array_merge($data, [
@@ -200,7 +200,7 @@ class Auth
 
         $data = [
             'mini_openid' => $openid,
-            'avatar'   => config('default_avatar'),
+            'avatar'   => config('site.default_avatar'),
 //            'nickname'  => $this->get_rand_nick_name(),
         ];
         $params = array_merge($data, [

+ 1 - 0
application/extra/site.php

@@ -45,4 +45,5 @@ return array (
   'apisite_switch' => '1',
   'apisite_notice' => '全站维护中',
   'kefu_mobile' => '400-1234-1234',
+  'default_avatar' => '/uploads/20241029/47eb7f0430d48a73346b1630692e20ae.png',
 );