update app添加地块新增经纬度

This commit is contained in:
chenbo 2023-12-20 10:52:52 +08:00
parent d37a1e6169
commit d7d19a5ebd
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@
public function add(): Json
{
//获取参数并验证
$fields = ['title','area','province_code','city_code','county_code','address','master_name','master_phone','pic'];
$fields = ['title','area','province_code','city_code','county_code','address','master_name','master_phone','pic', 'longitude', 'latitude'];
$params = $this->request->post($fields);
foreach($fields as $v){
if(!isset($params[$v]) || $params[$v] == ''){