fix seedBoxRecord

This commit is contained in:
xiaomlove
2025-02-07 20:25:43 +08:00
parent fd12d463b7
commit 53e167787c
3 changed files with 13 additions and 5 deletions

View File

@@ -37,6 +37,13 @@ class SeedBoxRecord extends NexusModel
);
}
protected function ipRange(): Attribute
{
return new Attribute(
get: fn($value, $attributes) => $attributes['ip'] ?: sprintf('%s ~ %s', $attributes['ip_begin'] ?? '', $attributes['ip_end'] ?? ''),
);
}
protected function statusText(): Attribute
{
return new Attribute(