统一:所有图片后缀从 .GIF 改为 .gif

- headface 目录 371 个文件重命名为小写后缀
- 代码中所有 .GIF 引用改为 .gif(User.php/AuthController/channels.php/frame.blade/scripts.blade)
- 新增迁移:将 users 表 usersf 列中的 .GIF 批量替换为 .gif
- 解决 Linux 大小写敏感导致图片加载失败的问题
This commit is contained in:
2026-02-26 23:27:35 +08:00
parent a7af3e3e06
commit bfd90ca882
377 changed files with 44 additions and 11 deletions

View File

@@ -81,14 +81,14 @@ class User extends Authenticatable
/**
* 头像文件名访问器
*
* ASP 系统的头像文件名存储在 usersf 字段中(如 "75.GIF"
* ASP 系统的头像文件名存储在 usersf 字段中(如 "75.gif"
* 但项目中各处通过 $user->headface 来引用头像。
* accessor headface 属性映射到 usersf 字段,保持代码一致性。
*/
protected function headface(): Attribute
{
return Attribute::make(
get: fn () => $this->usersf ?: '1.GIF',
get: fn () => $this->usersf ?: '1.gif',
set: fn (string $value) => ['usersf' => $value],
);
}