Compare commits

...

2 Commits

Author SHA1 Message Date
weiz bb86e215ac update 2023-11-30 13:40:40 +08:00
weiz 160d6bc844 Merge pull request 'update' (#33) from zhangwei into dev
Reviewed-on: #33
2023-11-30 11:22:21 +08:00
1 changed files with 1 additions and 3 deletions

View File

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