|
|
@ -106,6 +106,16 @@ class Shop extends ShopModel |
|
|
|
return $this->save($this->createData($data)) !== false; |
|
|
|
return $this->save($this->createData($data)) !== false; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public function editParking(array $data): bool |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if (!empty($data['parking_coordinate'])) { |
|
|
|
|
|
|
|
$parking_coordinate = explode(',', $data['parking_coordinate']); |
|
|
|
|
|
|
|
$data['parking_latitude'] = $parking_coordinate[0]; |
|
|
|
|
|
|
|
$data['parking_longitude'] = $parking_coordinate[1]; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return $this->save($data) !== false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 软删除 |
|
|
|
* 软删除 |
|
|
|
* @return bool |
|
|
|
* @return bool |
|
|
|