update app添加地块新增经纬度
This commit is contained in:
parent
d37a1e6169
commit
d7d19a5ebd
|
@ -59,7 +59,7 @@
|
||||||
public function add(): Json
|
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);
|
$params = $this->request->post($fields);
|
||||||
foreach($fields as $v){
|
foreach($fields as $v){
|
||||||
if(!isset($params[$v]) || $params[$v] == ''){
|
if(!isset($params[$v]) || $params[$v] == ''){
|
||||||
|
|
Loading…
Reference in New Issue