123
This commit is contained in:
parent
a508227a84
commit
e34dcb9f69
@ -1044,5 +1044,31 @@ class Statistics extends BaseController
|
||||
}
|
||||
|
||||
|
||||
//市场行情(小程序端)
|
||||
public function get_num26($area_id=0,$street_id=0,$village_id=0){
|
||||
$where = [];
|
||||
if ($area_id){
|
||||
$where[] = ['area_id', '=', $area_id];
|
||||
}
|
||||
if ($street_id){
|
||||
$where[] = ['street_id', '=', $street_id];
|
||||
}
|
||||
if ($village_id){
|
||||
$where[] = ['village_id', '=', $village_id];
|
||||
}
|
||||
|
||||
$return = [
|
||||
['value'=>3.50,'name'=>'黄瓜'],
|
||||
['value'=>1.60,'name'=>'白萝卜'],
|
||||
['value'=>2.30,'name'=>'茄子'],
|
||||
['value'=>3.50,'name'=>'西红柿'],
|
||||
['value'=>4.50,'name'=>'长豆角'],
|
||||
['value'=>2.10,'name'=>'土豆'],
|
||||
['value'=>2.10,'name'=>'胡萝卜'],
|
||||
];
|
||||
$this->apiSuccess('获取成功',$return);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user