地图订单修改

This commit is contained in:
2025-12-10 22:49:22 +08:00
parent 271b88232c
commit 528e4757dd
17 changed files with 325 additions and 183 deletions

View File

@@ -23,7 +23,8 @@ class AvatarCache {
* @returns 本地图片路径或Promise<string>
*/
public async getAvatarPath(avatarUrl: string): Promise<string> {
if (!avatarUrl) {
if (!avatarUrl || avatarUrl === 'null' || avatarUrl.includes('null')) {
console.warn('❌ [AvatarCache] 无效的头像URL:', avatarUrl);
return this.getDefaultAvatarPath();
}