main
Jing Li 2024-05-05 21:54:13 +08:00
parent 5c5a84157d
commit cc696f9efe
1 changed files with 24 additions and 0 deletions

View File

@ -69,6 +69,30 @@ class AppVersion extends Model
->value('apk_url');
}
protected function apkUrl(): Attribute
{
return Attribute::make(
set: function (mixed $value) {
if ((string) $value === '') {
$value = null;
}
return $value;
},
);
}
protected function wgtUrl(): Attribute
{
return Attribute::make(
set: function (mixed $value) {
if ((string) $value === '') {
$value = null;
}
return $value;
},
);
}
protected function isRelease(): Attribute
{
return Attribute::make(