This commit is contained in:
彭桃 2023-02-11 17:56:01 +08:00
parent a508227a84
commit e34dcb9f69

View File

@ -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);
}
}