Browse Source

优化计划任务

master
wanghongjun 2 years ago
parent
commit
3d16f7daf2
  1. 2
      app/command/passengerFlow.php
  2. 2
      app/command/passengerFlowAll.php
  3. 2
      app/command/passengerFlowReal.php
  4. 1
      route/app.php

2
app/command/passengerFlow.php

@ -42,6 +42,8 @@ class passengerFlow extends Command
$url = $config['host_url'] . "/api/cfas/v2/passengerFlow/groups";
$delete = Db::table('tp_passenger_flow')->where('id','>',1)->delete();
try {
foreach ($arr as $granularity => $value) {

2
app/command/passengerFlowAll.php

@ -44,6 +44,8 @@ class passengerFlowAll extends Command
];
$delete = Db::table('tp_passenger_flow_all')->where('id','>',1)->delete();
try {
foreach ($dateArr as $date => $value) {

2
app/command/passengerFlowReal.php

@ -23,6 +23,8 @@ class passengerFlowReal extends Command
{
$config = config('app');
$delete = Db::table('tp_passenger_flow_real')->where('id','>',1)->delete();
try{
$url = $config['host_url'] . "/api/cfas/v3/passenger/realTime";

1
route/app.php

@ -20,3 +20,4 @@ Route::get('allGroupTimeNum', 'index/allGroupTimeNum');
Route::get('allGroupNum', 'index/allGroupNum');
Route::get('realTimeData', 'index/realTimeData');
Route::get('toDayGroupsEnterNum', 'index/toDayGroupsEnterNum');
Route::rule('admin', 'admin/Index/index');

Loading…
Cancel
Save