You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
885 B
39 lines
885 B
<?php |
|
|
|
namespace App\Console\Commands; |
|
|
|
use App\Classes\NewEntry; |
|
use Illuminate\Console\Command; |
|
use Illuminate\Support\Facades\Log; |
|
|
|
class EntryInterval extends Command |
|
{ |
|
/** |
|
* The name and signature of the console command. |
|
* |
|
* @var string |
|
*/ |
|
protected $signature = 'entry:interval'; |
|
|
|
/** |
|
* The console command description. |
|
* |
|
* @var string |
|
*/ |
|
protected $description = '區間入案'; |
|
|
|
/** |
|
* Execute the console command. |
|
*/ |
|
public function handle() |
|
{ |
|
NewEntry::interval_entry(14); |
|
$itl_data = NewEntry::get_interval_entry_data(10); |
|
// Log::channel('entry')->notice($itl_data); |
|
if(count($itl_data)> 0){ |
|
NewEntry::interval_entry_local($itl_data); |
|
NewEntry::interval_entry_post($itl_data); |
|
} |
|
NewEntry::interval_entry_post_img(); |
|
} |
|
}
|
|
|