Browse Source

优化接口数据

master
wanghongjun 3 years ago
parent
commit
0e7989ab54
  1. 2
      source/application/common/logic/PassFlow.php

2
source/application/common/logic/PassFlow.php

@ -318,7 +318,7 @@ class PassFlow
$where .= ' and "statTime" >= ' . "'{$start_time}'" . ' and "statTime" <= ' . "'{$end_time}'"; $where .= ' and "statTime" >= ' . "'{$start_time}'" . ' and "statTime" <= ' . "'{$end_time}'";
$list = $dm->select('bt_passenger_flow',$where); $list = $dm->select('bt_passenger_flow',$where);
$allTimeData = []; $allTimeData = [];
for ($i = 9; $i < 23; $i++) { for ($i = 0; $i < 23; $i++) {
$str = strlen($i) == 1 ? '0'.$i.':00' : $i.':00'; $str = strlen($i) == 1 ? '0'.$i.':00' : $i.':00';
$allTimeData[$str] = 0; $allTimeData[$str] = 0;
} }

Loading…
Cancel
Save