统计bug修正

master
zhengyongxing 5 years ago
parent e8477373ff
commit 9e26a06ed2

@ -1375,7 +1375,7 @@ class StatController extends ThinkController
$model = M('device_statistics','tab_');
if ($type == 0) {
$return = $model->sum('new_device');
$return = $model->where(['time'=>['neq',0]])->sum('new_device');
// $return = $device->all_device();
} else if($type == 1) {
$return = $model->where(['time'=>array('between',[$todaystart,$todaystart+86399])])->sum('new_device');

Loading…
Cancel
Save