|
|
@ -105,6 +105,16 @@ class Shop extends ShopModel |
|
|
|
$data['remark'] = json_encode($data['remark'], JSON_UNESCAPED_UNICODE); |
|
|
|
$data['remark'] = json_encode($data['remark'], JSON_UNESCAPED_UNICODE); |
|
|
|
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; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 软删除 |
|
|
|
* 软删除 |
|
|
|