|
@@ -154,10 +154,10 @@ class Merchant extends BaseController
|
|
|
*/
|
|
*/
|
|
|
public function updateLocal($id)
|
|
public function updateLocal($id)
|
|
|
{
|
|
{
|
|
|
- $data = $this->request->params([['longitude', ''], ['latitude', '']]);
|
|
|
|
|
|
|
+ $data = $this->request->params([['long', ''], ['lat', '']]);
|
|
|
if (!$this->repository->exists($id))
|
|
if (!$this->repository->exists($id))
|
|
|
return app('json')->fail('数据不存在');
|
|
return app('json')->fail('数据不存在');
|
|
|
- if ($data['longitude'] == '' || $data['latitude'] == '')
|
|
|
|
|
|
|
+ if ($data['long'] == '' || $data['lat'] == '')
|
|
|
return app('json')->fail('请选择经纬度');
|
|
return app('json')->fail('请选择经纬度');
|
|
|
$this->repository->update($id, $data);
|
|
$this->repository->update($id, $data);
|
|
|
return app('json')->success('编辑成功');
|
|
return app('json')->success('编辑成功');
|