|
@@ -39,15 +39,15 @@ class CheckInvoice extends Command
|
|
|
'fully_digitalized_normal_electronic'=>'022',
|
|
|
];
|
|
|
$this->output=$output;
|
|
|
- // if(Cache::get('checkInvoiceP')==1)return;
|
|
|
+ if(Cache::get('checkInvoicePlus')==1)return;
|
|
|
while ($list->valid()){
|
|
|
- Cache::set('checkInvoiceP',1,1800);
|
|
|
+ Cache::set('checkInvoicePlus',1,1800);
|
|
|
$invoice = $list->current();
|
|
|
$this->taxCheck($invoice);
|
|
|
$this->output->writeln('['.date(DATE_W3C).']'.$invoice['hpNo'].'验票');
|
|
|
$list->next();
|
|
|
}
|
|
|
- Cache::set('checkInvoiceP',0);
|
|
|
+ Cache::set('checkInvoicePlus',0);
|
|
|
|
|
|
}
|
|
|
|