Debug dynamic item, use address in db row
This commit is contained in:
parent
6743e5bf73
commit
aa1a460836
@ -12,8 +12,7 @@ use App\Models\Dynamic as DynamicModel;
|
||||
class DynamicItem extends Command
|
||||
{
|
||||
protected $signature = 'debug:dynamic:item'
|
||||
.' {name : Dynamic Item}'
|
||||
.' {ftn : FTN Address}';
|
||||
.' {name : Dynamic Item}';
|
||||
|
||||
protected $description = 'Generate a dynamic item';
|
||||
|
||||
@ -24,9 +23,7 @@ class DynamicItem extends Command
|
||||
if (! $do)
|
||||
throw new \Exception(sprintf('Dynamic Item [%s] doesnt exist?',$this->argument('name')));
|
||||
|
||||
$ao = Address::findFTN($this->argument('ftn'));
|
||||
|
||||
$d = new Dynamic($do,$ao,Send::T_FILE);
|
||||
$d = new Dynamic($do,$do->address,Send::T_FILE);
|
||||
|
||||
$d->open();
|
||||
echo $d->read($d->size);
|
||||
|
Loading…
Reference in New Issue
Block a user