wugg 5 months ago
parent
commit
a72ca1f546
2 changed files with 2 additions and 2 deletions
  1. 1 1
      app/admin/command/CheckInvoice.php
  2. 1 1
      app/admin/command/CheckTicket.php

+ 1 - 1
app/admin/command/CheckInvoice.php

@@ -27,7 +27,7 @@ class CheckInvoice extends Command
     protected function execute(Input $input, Output $output)
     {
         $this->datetime = date("Y-m-d");
-        if(Cache::get('checkInvoiceP')==1  && date('H')>=12)return;
+        if(Cache::get('checkInvoiceP')==1  || date('H')<12)return;
         $list = $this->getInvoice();
         $invoice =Config::get('invoiceType');
         $this->InvoiceNum = $invoice['KingInvoice'];

+ 1 - 1
app/admin/command/CheckTicket.php

@@ -26,7 +26,7 @@ class CheckTicket extends Command
     protected function execute(Input $input, Output $output)
     {
         $this->dateTime = date("Y-m-d H:i:s");
-        if(Cache::get('checkTicketP')==1 && date("H")>=12)return;
+        if(Cache::get('checkTicketP')==1 || date("H")<12)return;
         $this->output=$output;
         $ticket = $this->getTicket();
         while ($ticket->valid()) {