作者 wangzhi

跨域请求

... ... @@ -81,6 +81,7 @@ class Index extends Api
$arr = Db::name('dangaddress')->where($map)->find();
if (empty($arr)) {
$data = [
'id' => '',
'title' => '',
'address' => '',
'lat' => '',
... ... @@ -90,6 +91,7 @@ class Index extends Api
];
} else {
$data = [
'id' => $arr['id'],
'title' => $arr['title'],
'address' => $arr['address'],
'lat' => $arr['lat'],
... ...