接口修改

This commit is contained in:
彭桃 2023-02-16 15:51:11 +08:00
parent ec0310c906
commit aef4f6f2ed

View File

@ -232,8 +232,8 @@ class Village extends BaseController
$num3 =0;
}
$list['data'] = [
['num'=>$num1,'text'=>'村庄数','img'=>'https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/czs.png'],
['num'=>$num2,'text'=>'村民数','img'=>'https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/cms.png'],
['num'=>$num1,'text'=>'村庄数','img'=>'https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/cunzhaung.png'],
['num'=>$num2,'text'=>'村民数','img'=>'https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/cunming.png'],
['num'=>$num3,'text'=>'户数','img'=>'https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/hushu.png'],
];
$this->apiSuccess('获取成功', $list);
@ -242,8 +242,8 @@ class Village extends BaseController
$num2 = Db::table('fa_szxc_information_useraddress')->where('street_id',$code)->count();
$num3 = Db::table('fa_szxc_information_usermsg')->where('is_hz',1)->where('street_id',$code)->count();
$list['data'] = [
['num'=>$num1,'text'=>'村庄数','img'=>'https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/czs.png'],
['num'=>$num2,'text'=>'村民数','img'=>'https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/cms.png'],
['num'=>$num1,'text'=>'村庄数','img'=>'https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/cunzhaung.png'],
['num'=>$num2,'text'=>'村民数','img'=>'https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/cunming.png'],
['num'=>$num3,'text'=>'户数','img'=>'https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/hushu.png'],
];
$this->apiSuccess('获取成功', $list);