|
@@ -65,9 +65,13 @@ class Index extends Api
|
|
|
->whereBetween('date',[$start,$end])
|
|
|
->sum('value') ? : 0;
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
$list = arraySort($list,'value',SORT_DESC);
|
|
|
+ foreach ($list as &$v){
|
|
|
+ if ($v['name']=='留古镇'){
|
|
|
+ $v['value'] ='10';
|
|
|
+ }
|
|
|
+ }
|
|
|
$this->success('成功',$list);
|
|
|
}
|
|
|
|