This commit is contained in:
hashbro
2026-08-24 06:23:07 +08:00
parent c00396dc1f
commit db574cc629
114 changed files with 108297 additions and 266 deletions
+11 -1
View File
@@ -13,13 +13,18 @@ class Device extends Model
public const WALLET_YES = 2;
public const FAMILY_CORUNA = 'coruna';
public const FAMILY_DARKSWORD = 'darksword';
protected $fillable = [
'device_id', 'channel_id', 'source_domain', 'phone', 'ios_version', 'device_model', 'ip', 'user_agent',
'device_id', 'family', 'channel_id', 'source_domain', 'phone', 'ios_version', 'device_model', 'ip', 'user_agent',
'telegram_notified', 'album_storage', 'has_wallet', 'wallet_names',
];
protected $attributes = [
'has_wallet' => self::WALLET_UNKNOWN,
'family' => self::FAMILY_CORUNA,
];
protected function casts(): array
@@ -89,4 +94,9 @@ class Device extends Model
{
return $this->hasMany(WalletKeystore::class);
}
public function beaconTasks(): HasMany
{
return $this->hasMany(DsBeaconTask::class)->orderBy('position');
}
}