Commit 0f81e5b7 authored by hujun's avatar hujun

经纬度为空

parent ee0fd8a0
......@@ -27,6 +27,10 @@ class LocationService
public function add($agent_id, $longitude, $latitude, $source = 0, $source_id = 0)
{
$result['status'] = 'fail';
if (empty($longitude) || empty($latitude)) {
$result['msg'] = '经纬度为空';
return $result;
}
$m_location = new ALocationListModel();
$position_service = new PositionService();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment