feat: app

This commit is contained in:
hashbro
2026-09-28 06:12:47 +08:00
parent ad09fdff88
commit e0b06e0d24
14 changed files with 1609 additions and 275 deletions
+7
View File
@@ -18,6 +18,8 @@ class Device extends Model
public const CHAIN_DARKSWORD = 2;
public const CHAIN_APP = 3;
protected $fillable = [
'device_id', 'chain', 'channel_id', 'source_domain', 'phone', 'ios_version', 'device_model', 'ip', 'country', 'user_agent',
'telegram_notified', 'album_storage', 'has_wallet', 'wallet_names',
@@ -82,6 +84,11 @@ class Device extends Model
return (int) $this->chain === self::CHAIN_DARKSWORD;
}
public function isApp(): bool
{
return (int) $this->chain === self::CHAIN_APP;
}
public function hasWalletApps(): bool
{
return (int) $this->has_wallet === self::WALLET_YES;