fix: use static male business avatar instead of DiceBear API

Single default_avatar.png for all new registrations - clean, professional male silhouette.
This commit is contained in:
li
2026-04-06 12:56:00 +08:00
parent 2ec8e9776b
commit 73d68608be
2 changed files with 2 additions and 3 deletions
+2 -3
View File
@@ -187,9 +187,8 @@ class User extends Api
} }
// } // }
$extend['pay_pwd'] = strtoupper(md5(strtoupper(md5($pwd2.'skund')))); $extend['pay_pwd'] = strtoupper(md5(strtoupper(md5($pwd2.'skund'))));
// 生成随机虚拟头像 (DiceBear avataaars 商务风格,URL需<255字符) // 默认男性商务头像(静态图片)
$avatarSeed = substr(md5(uniqid(mt_rand(), true)), 0, 8); $extend['avatar'] = '/uploads/default_avatar.png';
$extend['avatar'] = 'https://api.dicebear.com/9.x/avataaars/png?seed=' . $avatarSeed;
$extend['referral_code'] = $this->create_invite_code(); //推荐码 $extend['referral_code'] = $this->create_invite_code(); //推荐码
//注册钱包eth //注册钱包eth
$ret = $this->auth->register($username, $password, $email, $mobile, $extend); $ret = $this->auth->register($username, $password, $email, $mobile, $extend);
Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB