feat: app
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user