perf: 优化国际化、优化显示

This commit is contained in:
kuaifan
2024-10-24 23:42:20 +08:00
parent 6b4b88aba7
commit 1f6ef62499
31 changed files with 229 additions and 44 deletions
-9
View File
@@ -82,15 +82,6 @@ class Report extends AbstractModel
return $this->hasOne(User::class, "userid", "userid");
}
public function getTypeAttribute($value): string
{
return match ($value) {
Report::WEEKLY => "周报",
Report::DAILY => "日报",
default => "",
};
}
public function getContentAttribute($value): string
{
return htmlspecialchars_decode($value);