Compare commits
No commits in common. "2cbb9254c6e90b4da877d938ae0508c0e438af45" and "160d6bc8445d751dee0875068876f0ad6a9922f2" have entirely different histories.
2cbb9254c6
...
160d6bc844
|
@ -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','longitude','latitude','master_name','master_phone','pic'];
|
||||||
$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] == ''){
|
||||||
|
@ -102,6 +102,8 @@
|
||||||
'county_code' => $params['county_code'],
|
'county_code' => $params['county_code'],
|
||||||
'county_name' => $county['county_name'],
|
'county_name' => $county['county_name'],
|
||||||
'address' => $params['address'],
|
'address' => $params['address'],
|
||||||
|
'longitude' => $params['longitude'],
|
||||||
|
'latitude' => $params['latitude'],
|
||||||
'master_name' => $params['master_name'],
|
'master_name' => $params['master_name'],
|
||||||
'master_phone' => $params['master_phone'],
|
'master_phone' => $params['master_phone'],
|
||||||
'pic' => $params['pic'],
|
'pic' => $params['pic'],
|
||||||
|
|
Loading…
Reference in New Issue