接口修改4

This commit is contained in:
彭桃 2023-02-13 13:59:08 +08:00
parent aad29c1ac6
commit b2f0338660

View File

@ -180,9 +180,9 @@ class Census extends BaseController
// 订单商品总数
$need_num = Db::connect('shop')->table('eb_product_order_log')->alias('a')->join('eb_store_order b','a.order_id = b.order_id')->where($where2)->where('a.status',1)->sum('b.total_num');
$return['index'] = [
['name' => '总人口','value'=>$num.'人'],
['name' => '农产品种类','value'=>$cms_agriculture_products.'种'],
['name' => '品牌企业','value'=>$num_1.'家'],
['name' => '总人口','value'=>$num.'人','image'=>'https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/587.png'],
['name' => '农产品种类','value'=>$cms_agriculture_products.'种','image'=>'https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/590.png'],
['name' => '品牌企业','value'=>$num_1.'家','image'=>'https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/589.png'],
['name' => '种植面积','value'=>$zz_mianji],
['name' => '养殖面积','value'=>$sum_216],
['name' => '荒地面积','value'=>$waste_land_area],
@ -197,7 +197,7 @@ class Census extends BaseController
['name' => '园地','value'=>$sum_69],
];
$return['qita'] = [
['name' => '土地总面积','value'=>$land_area_num],
['name' => '土地总面积','value'=>$land_area_num,'image'=>'https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/588.png'],
['name' => '农产品销量','value'=>$num_2.'单'],
['name' => '农产采购量','value'=>$num_3.'单'],
['name' => '已录入商户','value'=>$num_4.'个'],