|
|
|
@ -226,10 +226,9 @@ class Passcc extends Controller |
|
|
|
$libData = Pass::getBaoAnLibData(true); |
|
|
|
|
|
|
|
foreach ($libData as $libRow) { |
|
|
|
|
|
|
|
$libProportion = $libRow['data']['today']['incount'] > 0 ? round($libRow['data']['today']['incount']/$threshold,2) : 0; |
|
|
|
$returnData[] = [ |
|
|
|
'allEnter' => $libRow['data']['today']['incount'], |
|
|
|
'allEnter' => $libRow['data']['today']['incount'] ?: 0, |
|
|
|
'proportion' => ($libProportion * 100) . "%", |
|
|
|
'congestion' => Pass::getPassType($libProportion), |
|
|
|
'groupId' => $libRow['groupId'], |
|
|
|
|