|
@@ -24,8 +24,10 @@ class Manage
|
|
|
$map = Dever::param('map', $data);
|
|
|
if ($map) {
|
|
|
$temp = is_string($map) ? explode(',', $map) : $map;
|
|
|
- $update['lng'] = $temp[1];
|
|
|
- $update['lat'] = $temp[2];
|
|
|
+ if (isset($temp[1])) {
|
|
|
+ $update['lng'] = $temp[1];
|
|
|
+ $update['lat'] = $temp[2];
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
$goods = Dever::param('goods', $data);
|